Re: several django questions, models, apache

2006-01-25 Thread [EMAIL PROTECTED]
removing the trailing ^ is the only way so far, here the httpd where i took ofthe / after "/cefinban and added a ServerName then typing in the browser http://127.0.0.1/cefinban/admin/ if url.py link is (r'^admin/', include('django.contrib.admin.urls.admin')), give me a 404 error The current

Re: several django questions, models, apache

2006-01-24 Thread oggie rob
> You could remove the "^" in the regex to say it matches any strings that > prefixed the intended url pattern: > r'^cefinban/recettes/(?P\d+)/$', > 'cefinban.recettes.views.detail') > to > r'recettes/(?P\d+)/$', 'cefinban.recettes.views.detail') But that doesn't really solve the problem, just

Re: several django questions, models, apache

2006-01-24 Thread Dody Suria Wijaya
greg wrote: i have to modifie my url.py file previously urlpatterns = patterns('', (r'^recettes/$', 'cefinban.recettes.views.index'), (r'^recettes/(?P\d+)/$', 'cefinban.recettes.views.detail'), . ) to (r'^cefinban/recettes/(?P\d+)/$', 'cefinban.recettes.views.detail

Re: several django questions, models, apache

2006-01-24 Thread Adrian Holovaty
On 1/24/06, greg <[EMAIL PROTECTED]> wrote: > That works fine,nowin my template when i do {{recette.difficulte }} i > got the number 1,2 or 3 not the name of the difficulty. > SInce DIFFICULTY_CHOICES is not defined as a global variable and it is > not allowed to put DIFFICULTY_CHOICES in class; >

several django questions, models, apache

2006-01-24 Thread greg
Hello everyone, finally after 3 weeks without Internet and django installed to play with i can ask questions. Firstly about the model, i am doing a recipes website to learn django and / utility. Here is a small part of the recette.py model of recettes app DIFFICULTY_CHOICES = ( (1, 'Si