How to convert modelformset_factory function view to CBV?

2015-12-17 Thread Richard Brockie
Any recommendations for how to proceed? Thanks, Richard Brockie -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegro

Missing default callable breaks migration

2015-10-28 Thread Richard Buck
If I try to change the default on a model field from one callable to another, the migration will fail if the old callable is no longer available. It appears this is because the migration system tries to call the old callable to determine if it returns a different value from the new. I don't

Re: Strategies for Speeding Up Django 1.8 Tests?

2015-09-22 Thread Richard
If you're not changing the schema, you could try using the "-k" option to keep the database between tests. This way it doesn't have to recreate it and the indexes each time you run your tests. On Tuesday, 22 September 2015 11:22:51 UTC-6, Robert F. wrote: > > Does anyone have any strategies or

Re: Question about squashing django migrations

2015-08-10 Thread Richard Brockie
Hi Carl, Thanks for pointing this out - it's right there! I don't know how I missed it... Thanks again, R. On Mon, Aug 10, 2015 at 11:12 AM, Carl Meyer <c...@oddbird.net> wrote: > Hi Richard, > > On 08/01/2015 06:27 PM, Richard Brockie wrote: > > Can someone please exp

Question about squashing django migrations

2015-08-01 Thread Richard Brockie
become confused with the overlapping numbering before/after the squash so I would like to streamline things a little. I'm ok to remove the first set of migrations 0001 to 0052 as they are correctly captured by the first squash. What are your recommendations in a case like this? Thanks! Richard Br

Re: Regarding Learning Django with collaboration

2015-07-19 Thread richard kappler
I'd be interested. On Jul 19, 2015 6:16 AM, "Tara gurung" wrote: > > YES absolutely > On Friday, 17 July 2015 13:22:13 UTC+5:45, How to configure pgAdminIII > wrote: >> >> Hi People, >> >> Are there any people who are learning Python and even planning to >> learn Django

Problem with error admin.E202 on OneToOneRelation

2015-04-08 Thread Richard la Croix
followed the examples from the tutorial quite closely and that a foreign key definition on the Address 'returning' to the Resort should not be required. Other addresses might/will be owned by other objects/classes. Obviously I must be doing something wrong :-( Any suggestions? Thanks, Richard

models, peeking to next record - maybe

2015-02-07 Thread Richard Bowden
Got an problem that I am struggling to solve.. I have: class Address(models.Model): name = models.CharField() event_date = models.DateTime() event1, 25/01/2015 event2, 27/01/2015 event3, 05/02/2015 and so on… what I am trying to figure out is, how to calculate the days between each event.

models, peeking to next record - maybe

2015-02-07 Thread Richard Bowden
I am working on a problem that I am trying to figure out, not having much luck so far... I have a model, basic for this example: class Event(models.Model): name = models.Charfield(max_length=10) event_date = models.DateTime() I am trying to workout how I can calculate the number of days

Re: formset - how to set a from error from formset.clean?

2015-01-29 Thread Richard Brockie
Following up - this did the trick. Thanks for the pointer. R. On Mon, Jan 19, 2015 at 10:40 AM, Richard Brockie <rich...@ontheday.net> wrote: > Thank you - that looks like what I am looking for! I don't know how I > missed that. > > I'm on 1.6 right now - another reason to mo

Re: formset - how to set a from error from formset.clean?

2015-01-19 Thread Richard Brockie
gt; > self.forms[3].add_error('field_name', 'error message') > > > https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.add_error > > Collin > > On Saturday, January 17, 2015 at 10:46:27 PM UTC-5, Richard Brockie wrote: >> >> Hi everyone, >> &g

formset - how to set a from error from formset.clean?

2015-01-17 Thread Richard Brockie
Hi everyone, In a formset I can use the .clean() method to validate data across the formset. The formset.clean() method is run after all the form.clean() methods - this makes sense. Raising a formset ValidationError alerts the user to the problem with formset.non_form_errors. I would like to

Re: modelformset question - interspersing extra forms among existing forms

2015-01-12 Thread Richard Brockie
eference to the original race_number to decide if you need to > .save() or not. > > Collin > > On Friday, January 2, 2015 9:42:47 PM UTC-5, Richard Brockie wrote: >> >> Hi Collin, >> >> Thanks very much for the advice. I'll be getting to this part of my >&

Re: modelformset question - interspersing extra forms among existing forms

2015-01-07 Thread Richard Brockie
t. > > Collin > > On Friday, January 2, 2015 9:42:47 PM UTC-5, Richard Brockie wrote: >> >> Hi Collin, >> >> Thanks very much for the advice. I'll be getting to this part of my >> development in the next few days and will report back when I have things >>

Re: Recommendations for hosting service?

2015-01-06 Thread Richard Brockie
I'm using webfaction also - though still shared, they (and others) are much, much better than commodity shared hosting. Apart from the above, the reasons I chose webfaction: 1. Django support, plus: 2. php/MySQL for my existing codebase R. On Tuesday, January 6, 2015 5:44:40 AM UTC-8,

Re: Expected performance of the django development server?

2015-01-05 Thread Richard Brockie
Hi Jani, That's a correct diagnosis. I knew Django was doing lazy loading, but didn't fully understand the implications. In my case I have a filtered and ordered queryset resulting in ~400 records. Upon processing in the template, each was prompting a database visit 3 times when outputting

Expected performance of the django development server?

2015-01-04 Thread Richard Brockie
Hello again, I'm to the point in my django development that I am beginning to use realistic amounts of test data. I'm using postgresql as the database server, with PyCharm as my IDE, everything in a virtualenv on an SSD on an Ivy Bridge Core i7 processor with 16 GB of RAM running Windows 7

Re: modelformset question - interspersing extra forms among existing forms

2015-01-04 Thread Richard Brockie
if you need to > .save() or not. > > Collin > > On Friday, January 2, 2015 9:42:47 PM UTC-5, Richard Brockie wrote: >> >> Hi Collin, >> >> Thanks very much for the advice. I'll be getting to this part of my >> development in the next few days and will report ba

Re: modelformset question - interspersing extra forms among existing forms

2015-01-02 Thread Richard Brockie
entry.delete() > else: > forms = [EntryForm(instance=e, prefix=e.category.pk) for e in > entries] > return render(request, 'template.html', {'athlete': athlete, 'forms': > forms}) > > {% for form in forms %} > Category: {{ form.instance.category }} > {{

modelformset question - interspersing extra forms among existing forms

2014-12-29 Thread Richard Brockie
Hi, I have the following pseudo model that I will use as the basis of a modelformset: class Entry: athlete = ForeignKey(athlete) category = ForeignKey(category) race_number = IntegerField I have a page that displays each athlete's details so the choice of athlete has already been

Re: simplifying double decorators?

2014-11-30 Thread Richard Brockie
')(view) @triple_decorator() def my_view... Thanks very much! R. On Sun, Nov 30, 2014 at 11:48 AM, Arnold Krille <arn...@arnoldarts.de> wrote: > On Sun, 30 Nov 2014 10:30:29 -0800 Richard Brockie > <rich...@ontheday.net> wrote: > > I'm running into the situation wh

simplifying double decorators?

2014-11-30 Thread Richard Brockie
this: @my_custom_decorator_with_redirects() def some_view... -- R. Richard Brockie <http://www.ontheday.net/> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Re: POSTGIS_VERSION error

2014-08-11 Thread richard . oates
sion outside the database configuration, this is what I think will fix > it for you > > DATABASES = { > 'default': { > 'ENGINE': 'django.contrib.gis.db.backends.postgis', > 'NAME': os.path.join(BASE_DIR, 'geodjango'), > 'USER': 'richard

POSTGIS_VERSION error

2014-08-11 Thread richard . oates
Hi all, I am a newbie to Django and in my settings.py file I have put in my database config details as per below: DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': os.path.join(BASE_DIR, 'geodjango'), 'USER': 'richard

Python 3 Usage

2014-07-07 Thread Richard Eng
I was wondering how many Django users have switched to Python 3. Are the majority of users still on Python 2? I'm looking for rough proportion/percentage. I also read that Django and Python 3 have some problems or issues. Is there any truth to this? Thanks. -- You received this message

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-05-09 Thread Richard Esplin
-out 1.6 and then manage an upgrade a few months after our launch. PyMySQL appears to work fine, but I haven't benchmarked it yet. Knowing that I can drop in the Oracle connector if there is a problem makes me confident to move forward. Cheers, Richard On Friday, May 09, 2014 14:49:11 Giovanni

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-05-06 Thread Richard Esplin
': { 'ENGINE': 'django.db.backends.mysql', . . . . I have a few months of testing before I'll know if it is reliable, but at least I can move forward with development. Richard On Monday, May 5, 2014 6:45:19 PM UTC-6, Richard Esplin wrote: > > I can't find any evidence on the interwebs of s

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-05-05 Thread Richard Esplin
This is actually a warning, and only halts execution when settings.py has DEBUG enabled. See mysql/connector/django/base.py line 59. However when syncdb proceeds past the deprecation warning, it halts on the error about needing schema_editor implemented. On Thursday, April 3, 2014 9:09:31 AM

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-05-05 Thread Richard Esplin
appreciate hearing them. Thanks, Richard On Monday, May 5, 2014 6:17:57 PM UTC-6, Richard Esplin wrote: > > I am also trying to use Django 1.7 with the Mysql-Python-Connector 1.1.6. > I am seeing the same behavior for both the migrate NotImplementedError and >

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-05-05 Thread Richard Esplin
I am also trying to use Django 1.7 with the Mysql-Python-Connector 1.1.6. I am seeing the same behavior for both the migrate NotImplementedError and the syncdb RemovedInDjango19Warrning. Were you able to solve these problems? Richard On Thursday, April 3, 2014 9:09:31 AM UTC-6, Giovanni wrote

Re: Django 1.5.1 and clearsessions

2013-08-07 Thread Richard E. Cooke
Works fine for me. Must be a path issue. On Wednesday, August 7, 2013 9:41:37 AM UTC-4, Derrick Jackson wrote: > > Hmm... > > When I attempt to run django-admin.py clearsessions while using django > 1.5.1 I am told that clearsessions is an unknown command. Has anyone > successfully used

How do I find out how many AdminSites exist?

2013-08-07 Thread Richard E. Cooke
I want to use Grappelli and Django-extensions with my Admin site. But I also need to use modelAdmin.queryset to restrict my records. Both Grappelli and Django-extensions Auto Complete Lookups use the model's base queryset. I want to put in a request to change the code, which is easy - so long

Re: How do I change a global setting from inside middleware?

2013-06-23 Thread Richard E. Cooke
actice for this kind of problems. > For example: > > def admin_title(request): > """ > Adds media-related context variables to the context. > """ > user_company_name = request.user.company_name > return {'grappelli_admin

How do I change a global setting from inside middleware?

2013-06-23 Thread Richard E. Cooke
I'm using Grappelli to spruce up my Admin interface. I would like to customize the site name (and web page tittle). I have this in my project settings.py file: # http://django-grappelli.readthedocs.org/en/latest/customization.html GRAPPELLI_ADMIN_TITLE = "The Default Company" And in my middle

Re: How to access request/session information from model.clean?

2013-06-23 Thread Richard E. Cooke
Thanks Jason! I hunted through your links, and while I was setting up a test I stumbled upon this in the Django 1.5 Admin docs: - https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model and this: -

How to access request/session information from model.clean?

2013-06-21 Thread Richard E. Cooke
I'm trying to pass the request object, which includes the session object, to a chunk of Django 1.5 code that is tied to the model (model.clean). When running the Admin app, it does not have access to the request object. So I tried stashing it in RAM using thread.local(), only to get a crash

Re: Multi Client Django System

2013-05-27 Thread Richard Cooke (Gmail)
Thanks Frank! Lots of great bed-time reading!! Rich. On 5/23/2013 2:32 PM, Frank Bieniek wrote: Hi Richard, How do you ( a ) get the system to call your "by user" query? *a)* in your views you query manually - see below - organization_list And ( b ) how do you get the syst

Re: Multi Client Django System

2013-05-22 Thread Richard E. Cooke
Frank! You appear to have figured out what I spent most of today trying to figure out: How to get access to the current logged in user from INSIDE a custom data manager! Can you clarify something in your code? In your custom manager you define "by_user", which takes "user" as an input. But

Re: I need help doing a linked lookup in admin

2013-04-29 Thread Richard E. Cooke
I'm getting closer! First I found this note in the Content Types docs that explains why what I was doing does NOT work: https://docs.djangoproject.com/en/1.4/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey *Due to the way

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
That was exactly the problem! I knew I was missing something simple. Thanks! On Sunday, April 28, 2013 1:26:08 PM UTC-6, Martin J. Laubach wrote: > > I'd guess it's the usual model-magic dealing with app_label, which > causes them not to appear under "app1" (because, well, you defined them >

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
;*import **" if I were you. I would put the imports in the > models.py file rather than in _models/__init__.py > > Not sure if that will save your problem but might be worth trying it out. > > On Sunday, 28 April 2013 17:17:07 UTC+10, Richard Eames wrote: >> >> I like to split my m

Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
I like to split my models up into separate files, but it seems that the new customizable user model requires that it is defined directly in a "models.py" file. A condensed version of my project structure and code: manage.py project/ app1/ models.py "from _models import *"

I need help doing a linked lookup in admin

2013-04-26 Thread Richard E. Cooke
I used the *django-contacts *project as my starting point for a company contact database. Its really cool, it keeps "addresses", "phone numbers", etc in seperate db table so you can associate as many as you need to each company or person record. It uses *django.contrib.contenttype*s for its

Re: Lazy QuerySet command to get lists of objects and an attribute of a specific object

2013-04-23 Thread Richard Jelte
> But latest() raises DoesNotExist error if sample does not have any > stages. Without using latest() and thus not > having to write try/ catch, what is a good way to do this? Default values > for the list of stages and the status are [] and None, respectively. > I understand not wanting to

Re: Need good image on the fly resizing

2013-04-23 Thread Richard Jelte
> I am not cropping, just re-sizing. Like Kelly said, you'll have to make sure that all of the images are cropped the same way. I just made the mistake of clearing their keystore and now no images > display.Is there a way

Re: Need good image on the fly resizing

2013-04-22 Thread Richard Jelte
If you don't want to have to handle manually resizing images, I would recommend letting something like sorl-thumbnail handle the re-sizing for you. You will still need to have PIL or Pillow installed first, and make sure that png/jpeg support

Re: Error "Table 'django_comments' doesn't exist" - only in apache2 not in dev-server

2013-04-18 Thread Richard Jelte
There are a lot of different places where that can be coming from (anywhere that's trying to import django_comments for example). Try doing an ack-grep in your repo for any mention of django_comments that you might have missed when you were removing the app. On Thursday, April 18, 2013 7:17:07

How to abstract model methods to a separate class?

2013-02-26 Thread Richard Brockie
Hi, I have a model along the lines below. I want to be able to define some urls that have a related structure to provide different views of my model. It would be nice to abstract the link generation using a class as these views have wider application. class MyModel(models.Model): date =

Django-Jython installation trouble (total newbie :( )

2013-02-19 Thread Kristine Richard
Hello. I am trying to compile a whole bunch of benchmarking suites accross many languages and one I am interested in (unladen_swallow) has a dependency on Django. I am not looking to do development with Django OR Python, and I'm not particularly knowledgeable about either, they're not really

Re: Resize Image On Save is resizing all images in directory?

2012-02-28 Thread richard
reszing each image. Can anyone explain why this works like that? On Feb 28, 6:39 am, richard <pullenjenn...@gmail.com> wrote: > Hi I have an upload form that uploads an image and on the save i > resize the image. But when i do this images that are in the same > directory seem to get

Resize Image On Save is resizing all images in directory?

2012-02-28 Thread richard
Hi I have an upload form that uploads an image and on the save i resize the image. But when i do this images that are in the same directory seem to get resized aswell even though they have unique hash names? any help please. MODELS.py def upload_to(instance, old_filename): import time

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Thanks tom, that worked and now understand what i was doing wrong. much appreciated. On Feb 24, 7:08 am, Tom Evans <tevans...@googlemail.com> wrote: > On Fri, Feb 24, 2012 at 2:55 PM, richard <pullenjenn...@gmail.com> wrote: > > Hi Tom, > > > Thanks for your rep

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
, is a 1 to may relationship here correct for what i want to achieve? On Feb 24, 6:47 am, Tom Evans <tevans...@googlemail.com> wrote: > On Fri, Feb 24, 2012 at 2:20 PM, richard <pullenjenn...@gmail.com> wrote: > > Hi, Am i doing this in the correct way? > > […] >

help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Hi, Am i doing this in the correct way? I am trying to accomplish a UserProfile having multiple profile images. IE if a user uploads a profile photo it gets saved as the default profile pic but if they upload another pic then that becomes the default pic but i need to keep records of all the

Re: accessing foreign key value in template select related

2012-02-12 Thread richard
ProfileEditForm(ModelForm): city_id = forms.CharField(max_length=200,required=False) class Meta: model = UserProfile On Feb 12, 8:32 pm, richard <pullenjenn...@gmail.com> wrote: > Hi i have a UserProfile that has a city_id as a foreign key to cities > table

accessing foreign key value in template select related

2012-02-12 Thread richard
Hi i have a UserProfile that has a city_id as a foreign key to cities table. when i use {{ profile_edit_form.city_id}} in the template i get the id of the city that is stored in my userprofile showing as the value instead of the city name. Would the select related fix this issue and lookup the

Re: is my UserProfile ManyToMany wrong?

2012-02-12 Thread richard
   # eg hockey, gaming, etc >    interest = models.CharField(max_length=100) >    class Meta: >        db_table = u'interests' > >     def __unicode__(self): >             return self.interest > > Hope that's helpful. > > Best, > Patrick > > > > > > > > On

is my UserProfile ManyToMany wrong?

2012-02-12 Thread richard
Hi im having difficulty looping over my mantomany in my template. A user has a 1to1 with UserProfile and the UserProfile has a manytomany with interests. But displaying the form field without looping over it displays a model multiple select with just a list of object result sets. displaying

Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Richard House
Hi Saadat, Rather than creating something new, have you looked at contributing to software from such lists like this? http://en.wikipedia.org/wiki/List_of_open-source_healthcare_software Regards, Richard On 10 Feb 12, at 10:58, Saadat wrote: > Hello All, > I'm in my final year of co

advice needed using a form in one app in another

2012-02-02 Thread richard
I have two apps one called mysite and one called register which is a nested app to mysite that handles registration. In mysite app views i have a view that imports the register form from register app and renders to home.html and home.html includes another template called register.html. So the

Using Context Processor as form with HttpResponseRedirect

2012-01-31 Thread richard
Hi i have seen alot of people saying to use a context processor to include forms in multiple page. I have written a context processor login form that just returns the django Authentication form and everything works great including the form.errors etc except that I cant seem to redirect from the

Help using index view to render registration form from registration app

2012-01-31 Thread richard
Hi if anyone could point me in the right direction it would be greatly appreciated. Basically i have my index view which renders to index.html the main page for a site. I need to know the best practice to have my index view contain the registration form from django the registration app so when the

Re: GMail/Hotmail style checkbox drag-and-drop for Satchmo product groups

2011-12-17 Thread Richard Shebora
expert but it is clear this is an area of need. Richard On Sat, Dec 17, 2011 at 1:09 AM, Alec Taylor <alec.tayl...@gmail.com> wrote: > Good afternoon, > > I am considering building a GMail/Hotmail style checkbox drag-and-drop > for Satchmo product groups. > > e.g.

Default from display for charfield

2011-04-17 Thread Richard Smith
}} {% endif %} {% endfor %} My question: How do i get the browser to display a field large enough for 36 chars. I get a text area that is about 1/2 the size of the input/ Thanks for any assistance. Richard -- You received this message

fcgi, runfastcgi, parameters, docs [noob question]

2010-12-22 Thread Richard Brosnahan
to a method which expects (argset=[], **kwargs). No wonder it 'splodes. Can anyone direct me to a way to get this to work? What am I missing? Thanks in advance -- Richard Brosnahan -- You received this message because you are subscribed to the Google Groups "Django users" gro

Hello . )--y

2010-12-05 Thread Richard Zehnal
Hey, Are you busy these days? I know a very good company that may be help you to shop something. You can check it: www.sellele.com Recently this company have promotional activity. Most of their products have big discount that will help you save a lot of money. I think you will have a good time

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Richard Colley
Why not call your "boot" code from settings.py? On Aug 18, 4:05 pm, Tang Daogang wrote: > hi, Emily, > > Let me introduce Scala/Lift as example. > > Every lift project has a file named 'Boot.scala', this file will only > be executed once when this project boots up. In this

Re: Existing sites using Django

2010-07-13 Thread Richard Shebora
http://www.djangosites.org/ HTH, Richard Shebora On Tue, Jul 13, 2010 at 9:31 AM, Adam Auckland <adamauckl...@gmail.com>wrote: > Hi, > > I've discussed using Django to my MD and he's asked for some example > large sites that were built using Django. > > Does anyone main

Re: WSGI documentation

2010-07-06 Thread Richard Shebora
. Thanks, Richard Shebora On Tue, Jul 6, 2010 at 2:56 AM, Henrik Genssen <henrik.gens...@miadi.net>wrote: > can we please add a hint to the docs here: > http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/ > > for: > >WSGIPassAuthorization on &

Re: Selling Django

2010-06-20 Thread Richard Shebora
. And the only thing that has been stopping me is uncertainty about best practices. I will just get started regardless of the outcome of this post, but I'd love to have a obvious direction to proceed. Thanks, Richard Shebora On Fri, Jun 18, 2010 at 8:45 AM, Russell Keith-Magee < russ...@keith-magee.

Re: How to do user defined fields in Django?

2010-06-18 Thread Richard Shebora
This project seems like what you want, but i am not sure if it is still maintained or stable. It is at least a very interesting piece of code. http://freshmeat.net/projects/wikidbase/ Thanks, Richard Shebora On Fri, Jun 18, 2010 at 4:32 PM, zweb <traderash...@gmail.com> wrote: > I w

Re: Selling Django

2010-06-18 Thread Richard Shebora
cket when I write up a proposal. Thanks, Richard Shebora On Fri, Jun 18, 2010 at 5:53 AM, finn <finngruwierlar...@gmail.com> wrote: > Thanks for all the comments so far. I seem to have started a debate, > and that was exactly the purpose! > > First, let me try to clarify some

Re: Selling Django

2010-06-17 Thread Richard Shebora
Kenneth, You are right... of course. However, I am not trying to disguise django as a cms, just trying to say it would be great to have a best practices declaration for a cms within django. And for all the other great modules that don't yet play well together out of the box. Thanks, Richard

Re: Error while customizing admin/change_form.html

2010-06-17 Thread Richard Bolt
You're getting a recursion error because you're trying to extend admin/ change_form.html with itself. In other words your copy of admin/ change_form.html in the directory location you have is the default admin/change_form.html template now... You can either: 1. Copy the entire

Re: Selling Django

2010-06-17 Thread Richard Shebora
Matt, Between you and Russ I see what you mean. I will contact Tom and Venkatraman regarding their concept to see how I can help. I am not proficient with django's paradigm yet, but I can get better in the process. Thanks, Richard Shebora On Thu, Jun 17, 2010 at 11:36 AM, Matt Hoskins <ska

Re: Selling Django

2010-06-17 Thread Richard Shebora
Russ, Yes, I did at first see this as one issue. I see that your "Enterprise" site should not define best practices but at most refer to them as further reading. My email addresses the same issues as Tom and Venkatraman above. Thanks for explaining. Thanks, Richard Shebora On T

Re: Selling Django

2010-06-17 Thread Richard Shebora
y blunt force trauma from a bus, but I will die. There has to be a clear path for my clients when that happens. I am still eager to be involved. Thanks, Richard Shebora On Thu, Jun 17, 2010 at 9:43 AM, Matt Hoskins <skaffe...@googlemail.com> wrote: > >> plug and play.  A man

Re: Selling Django

2010-06-17 Thread Richard Shebora
cause the above situation does not exist for django. I know I am just re-hashing but please move forward with this, or something. I am most eager to help. Thanks, Richard Shebora 703-350-4707 office 202-215-2600 cel On Thu, Jun 17, 2010 at 4:19 AM, Russell Keith-Magee <russ...@keith-magee.com> wr

Re: Proabably a simple python question but ...

2010-06-01 Thread Richard Shebora
This post from Graham Dumpleton (wrote mod_wsgi) goes into detail of why that happens. Extremely useful reading... http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html Thanks, Richard Shebora On Tue, Jun 1, 2010 at 10:15 AM, Thomas Lionel Smets <tsm...@gmail.com>

Re: Looking for a good CRUD example

2010-05-28 Thread Richard Shebora
functionality. HTH, Richard Shebora On Fri, May 28, 2010 at 1:09 AM, Lee Hinde <leehi...@gmail.com> wrote: > Hi; > I've appreciated the sample apps out there as great learning tools. > I'm having problems saving existing records (new ones get created instead?) > and with validatio

Re: Setting Up Django as Virtual Host

2010-05-22 Thread Richard Shebora
fyi... http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html On Sat, May 22, 2010 at 6:19 PM, Daniel Roseman wrote: > On May 22, 6:47 pm, Mike T wrote: >> Um, could someone point me in the right direction.  I have a site with >> a

Re: Is it ok to super/save() twice in model.save()?

2010-05-14 Thread Richard Colley
Thanks Scott, that's more or less what we've finalised on. Appreciate your feedback! Richard On May 14, 10:28 pm, zinckiwi <zinck...@gmail.com> wrote: > Righto -- unfortunately that's the best solution I've come up with to > date. Here's the detailed version: > >

Re: Is it ok to super/save() twice in model.save()?

2010-05-13 Thread Richard Colley
Exactly as you had described ... I wanted to upload images to paths with the model instance's id in it. Seemed easier for a human to relate to that way (in case of maintenance outside of django). However, the uuid approach or similar may be the way forward. On May 13, 10:58 pm, zinckiwi

Is it ok to super/save() twice in model.save()?

2010-05-13 Thread Richard Colley
e of the 2 super.save() calls? I guess I could pull this behaviour out of the model, and place into the view that manipulates it, but I feel the functionality rightfully belongs in the model. Any help appreciated. Thanks, Richard -- You received this message because you are subscribed to the Goo

Re: how do you build an html website in python?

2010-04-17 Thread Richard Shebora
Check out this site. It will give you a great starting point for basic and some complex django apps... http://alpha.djangogenerator.com On Sat, Apr 17, 2010 at 8:39 PM, Nick Lacey wrote: > > > On Apr 17, 9:52 pm, Steven Elliott Jr wrote: > >>

Re: Django with a tiny linux distribution

2010-03-25 Thread Richard Shebora
look at turnkeylinux.com They have an ubuntu django base system ready to go. Thanks, Richard On Thu, Mar 25, 2010 at 8:11 AM, Pythoni <pyt...@hope.cz> wrote: > Has anybody tried using Django with a tiny linux distribution? > Thanks for replies > Mm. > > -- > You recei

Re: Creating fancier views

2010-03-02 Thread Richard
oper.yahoo.com/yui) which is exactly what I was after. With about 10 minutes work I was able to integrate a YUI DataTable using a static block of data in Javascript. In the future I will be able to expand this by obtaining the data from AJAX instead. Richard -- You received this message bec

Creating fancier views

2010-03-01 Thread Richard
I am relatively new to Django and am comfortable creating views and customising templates. I am wondering if there is an easy way to spice up certain things, such as tables, in a similar way to the admin interface does. Specifically I'd like sortable/filterable columns at this time, perhaps with

Re: anybody tried web2py and gone back to Django?

2010-02-22 Thread Richard
I tried web2py and haven't gone back, though sometimes it is tempting when I see so much Django work available! On Feb 18, 7:48 am, snfctech wrote: > If so, could you provide a bullet list of things you preferred in > Django?  Thanks. -- You received this message

Re: Scope of an app

2010-02-18 Thread Richard Shebora
Check out this site also. It will generate a good starting point for your app... I am using it to learn good project/app deisgn. djangogenerator.com Thanks, Richard Shebora On Thu, Feb 18, 2010 at 7:43 AM, Sander <sander.garret...@gmail.com> wrote: > Hello everybody, > > I'm

Re: Django Generator

2010-02-09 Thread Richard Shebora
ime? Thank you Brice for the great work on this! Appreciatively, Richard On Tue, Feb 9, 2010 at 6:02 PM, Brice Leroy <bbrriic...@gmail.com> wrote: > Thank you Richard. > > I put most of my coding convention inside and try to respect the pep8. > > A lot of work still need to be done.

Re: Django Generator

2010-02-09 Thread Richard Shebora
for years but am having some trouble wrapping my head around the "django" paradigm. Thanks, Richard On Tue, Feb 9, 2010 at 5:52 PM, Frank W. Samuelson <fr...@merrill-samuelson.com> wrote: > You are something of a killjoy, Mike. > > This could grow into a really great project

Re: Added-value over PHP?

2010-02-02 Thread Richard Shebora
http://pinaxproject.com/ On Tue, Feb 2, 2010 at 9:21 AM, Vincent wrote: > On 2 fév, 15:15, Shawn Milochik wrote: > > There is much to say on this topic. I suggest doing some Google searching > on "Django versus PHP" and read until you know the

Re: What is the diff

2009-12-22 Thread Richard Shebora
This link explains that and more... http://www.w3schools.com/tags/att_form_method.asp Check out the other sections because there are more html basics you will need to know. Thanks, Richard On Tue, Dec 22, 2009 at 7:42 AM, vishal d <2009vis...@gmail.com> wrote: > what is the diffe

admin order field on foreign key related object

2009-11-30 Thread Richard Mendes
ught the code should have been something like subquestion.question_nr but this gives an error. Does anyone know how to solve this using the django tools. Any help is appreciated, best regards, Richard Mendes -- You received this message because you are subscribed to the Google Groups

Does anybody have ADMIN rights to "djangosnippets.org"?

2009-11-13 Thread Richard E. Cooke
I'm trying to get an ID on this system and its stuck trying to e-mail me an "activation" e-mail! I'm using SPF on my server to reduce spam (very effective) but the underlying server they are using is not configured properly. The error message is: Nov 13 17:53:45 mail4.local.scom.ca

Re: Can I change the restriction on "username" without breaking anything?

2009-11-13 Thread Richard E. Cooke
I get nervous when all the examples and code snippets I find are several year old. This code snippet: http://www.djangosnippets.org/snippets/74/ works in principal, but relies on a regular expression test that is no longer defined n Django. I changed it to use a regex I use in server-side mail

Re: Can I change the restriction on "username" without breaking anything?

2009-11-13 Thread Richard E. Cooke
Thanks David! I was wondering about doing the same thing! I had not thought of your idea of soft-switching the login name from username to email. Interesting idea. I was toying with making my own class + auth backenend so I could change the DB layout to drop email. But I could see that having

Re: Can I change the restriction on "username" without breaking anything?

2009-11-12 Thread Richard E. Cooke
Thanks. Sorry. I have got to stop posting when I'm tired... For punishment, I read the Wikipedia article on the "@" character: http://en.wikipedia.org/wiki/@ No, I did not do a google search because I ass-umed the truly relevant info would be in this list. really. The first Google hit is a

Can I change the restriction on "username" without breaking anything?

2009-11-11 Thread Richard E. Cooke
My client wants to use e-mail addresses for user names. the contrib.auth application does not have a restriction in its model. But the form code has put a regex on the field that disallows the ampersand (@). What would be the easiest way to override that form field definition so its global?

<    1   2   3   4   >