Why can a Django project name not start with a numeric

2010-01-28 Thread Delacroy Systems
Why can a Django project name not start with a numeric? I would like my project name to be 1time. Even when I hack the system and manually update the settings.py file for the desired project name, I have problems when I do a migrate with South. -- You received this message because you are subscr

Re: Django evolution issue

2010-01-28 Thread Delacroy Systems
Thanks alot, I've now started using South. On Jan 29, 12:57 am, Shawn Milochik wrote: > The author of Django-evolution has stated (including at DjangoCon 2009) that > South is the best solution for this problem. > Django-evolution is unsupported and not under active development (unless > someon

Django evolution issue

2010-01-28 Thread Delacroy Systems
Hi, I am struggling to understand why Django Evolution is throwing this - so I don't know what to fix: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "c:\python25\Lib\site-packages\django\core\management \__init__.py", line 362, in execute_man

Re: Extend model choice in project

2010-01-28 Thread Delacroy Systems
I have the choices in a model. I want it this way so that the choices can be managed from the admin console. I have this code in models.py. class StatusChoices(models.Model): choice = models.CharField(max_length=10) #Actual value that is saved description = models.CharField(max_length

Re: warning: Not importing directory

2010-01-07 Thread Delacroy Systems
Jan 7, 7:56 pm, Tom Evans wrote: > On Thu, Jan 7, 2010 at 10:41 AM, Delacroy Systems > > > > wrote: > > If I create an __init__.py, I get this: > > 'import site' failed; use -v for traceback > > Traceback (most recent call last): > >  File "ma

Re: warning: Not importing directory

2010-01-07 Thread Delacroy Systems
ib\gettext.py", line 437, in find for nelang in _expand_lang(lang): File "C:\Python25\lib\gettext.py", line 131, in _expand_lang from locale import normalize ImportError: cannot import name normalize On Jan 7, 11:24 am, Daniel Roseman wrote: > On Jan 7, 7:40 am, Delacroy Syst

warning: Not importing directory

2010-01-06 Thread Delacroy Systems
How do I solve this? Happens when I do a runserver... warning: Not importing directory 'C:\Python25\Lib\site-packages\blocks \locale': missing __init__.py warning: Not importing directory 'C:\Python25\Lib\site-packages \django_cms-2.0.2-py2.5.egg\cms\locale': missing __init__.py warning: Not impor

Re: Search box: Nothing to repeat error

2010-01-05 Thread Delacroy Systems
l/business_list.html', {'object_list' : business} ) On Jan 5, 11:15 am, Daniel Roseman wrote: > On Jan 5, 5:24 am, Delacroy Systems wrote: > > > > > I want to allow a user to search for a value and return the results > > using the object_list generic view. How can I

Search box: Nothing to repeat error

2010-01-04 Thread Delacroy Systems
I want to allow a user to search for a value and return the results using the object_list generic view. How can I get this working? business_search.html: {% block content %} Business name: {% endblock content %} urls.py: (r'^?business=(?P\w+)/','businessn

Re: Generic view object_detail on a m2m relationship

2010-01-04 Thread Delacroy Systems
={'business' : business} ) (now just have to figure out a way to get my stress back!) On Jan 4, 7:55 pm, Delacroy Systems wrote: > I see that using object_detail is the 'incorrect' generic view to show > details. I am exploring other options, including writing a custo

Re: Generic view object_detail on a m2m relationship

2010-01-04 Thread Delacroy Systems
I see that using object_detail is the 'incorrect' generic view to show details. I am exploring other options, including writing a custom view to give me what I want. On Jan 4, 8:29 am, Delacroy Systems wrote: > I am trying to use the generic view, object_detail on a m2m > rela

Generic view object_detail on a m2m relationship

2010-01-03 Thread Delacroy Systems
I am trying to use the generic view, object_detail on a m2m relationship. I have multiple businesses that offer multiple services. I would like to show the services offered by each business. At the moment, I see all the services - not just the services that a particular business is offering. In mo

Passing a parameter into a queryset for a generic view

2010-01-03 Thread Delacroy Systems
I want to display all the services for a particular business using the generic view "object_detail". What I would like to do is pass the value of an id from the url to the queryset (into object_id) in urls.py - or a better way to do this using the "object_detail" generic view. models.py: class Bus