Re: Beginner's question about urls.py

2012-02-22 Thread shartha
Thanks for everyone for their help/time =) On Feb 22, 10:19 pm, shartha wrote: > Jonathan, how did you conclude that? > > On Feb 22, 10:00 pm, Jonathan Paugh wrote: > > > > > > > > > What puzzles me is thathttp://chekonam.info/claimsthat uWSGI doesn't > > know about the project--presumably the o

Re: Beginner's question about urls.py

2012-02-22 Thread shartha
PROBLEM SOLVED! This was a host specific problem and the customer service helped me solve it. I just needed to restart the application! On Feb 22, 10:19 pm, shartha wrote: > Jonathan, how did you conclude that? > > On Feb 22, 10:00 pm, Jonathan Paugh wrote: > > > > > > > > > What puzzles me is t

Re: Beginner's question about urls.py

2012-02-22 Thread shartha
Jonathan, how did you conclude that? On Feb 22, 10:00 pm, Jonathan Paugh wrote: > What puzzles me is thathttp://chekonam.info/claims that uWSGI doesn't > know about the project--presumably the one under /admin. > > Is this relevant? > > On 02/22/2012 10:45 PM, shartha wrote: > > > > > > > > > The

Re: Beginner's question about urls.py

2012-02-22 Thread Jonathan Paugh
What puzzles me is that http://chekonam.info/ claims that uWSGI doesn't know about the project--presumably the one under /admin. Is this relevant? On 02/22/2012 10:45 PM, shartha wrote: > The file I posted above is the actual file on my server. I don't think > I have any conflicts in the urls.py.

Re: Beginner's question about urls.py

2012-02-22 Thread shartha
The file I posted above is the actual file on my server. I don't think I have any conflicts in the urls.py. What are the databases that are created when you add 'django.contrib.admin' to your INSTALLED_APP and sync your database? On Feb 22, 9:27 pm, Stanwin Siow wrote: > Check your urls.py there

Re: Beginner's question about urls.py

2012-02-22 Thread Stanwin Siow
Check your urls.py there could be conflicting statements: http://stackoverflow.com/questions/4174610/django-admin-page-not-found-at-admin Check out the stackoverflow question Best Regards, Stanwin Siow On Feb 23, 2012, at 11:20 AM, shartha wrote: > I have "django.contrib.admin" added to

Re: Beginner's question about urls.py

2012-02-22 Thread shartha
I have "django.contrib.admin" added to my INSTALLED_APP and database is also sync'ed! On Feb 22, 9:04 pm, Stanwin Siow wrote: > check your settings.py file to ensure that you have the admin line > uncommented in installed apps. > > Best Regards, > > Stanwin Siow > > On Feb 23, 2012, at 10:58 AM,

Re: Beginner's question about urls.py

2012-02-22 Thread Stanwin Siow
check your settings.py file to ensure that you have the admin line uncommented in installed apps. Best Regards, Stanwin Siow On Feb 23, 2012, at 10:58 AM, shartha wrote: > Hello, > > I am trying to deploy a simple django site. The host I have chosen > installed django for me. But the prob

Beginner's question about urls.py

2012-02-22 Thread shartha
Hello, I am trying to deploy a simple django site. The host I have chosen installed django for me. But the problem is they have modified the files a little bit and it sometimes gets confusing for a novice person like me. Here is my question: This is the urls.py on the server:

Re: Question about urls.py

2008-04-22 Thread Alex Morega
On Apr 22, 2008, at 16:34 , jmDesktop wrote: > But what I don't understand is the comment on GET. I thought that was > what I was doing. Or am I doing the same thing only wrong? Are you > saying that I should use a querystring in the url like myurl/? > email=theemail&anothervar=something... i

Re: Question about urls.py

2008-04-22 Thread jmDesktop
I ended up with this (from both of you, thanks): urls.py: (r'^contact/thanks/(?P.*)/$','mysite.books.views.thanks'), and in my views.py: def thanks(request, sender): return render_to_response('books/thanks.html',{'user': sender}) thanks.html: {% extends 'base.html' %} {% block title

Re: Question about urls.py

2008-04-21 Thread Kenneth Gonsalves
On 22-Apr-08, at 4:00 AM, jmDesktop wrote: > (r'^contact/thanks/(.)/$','mysite.books.views.thanks' (r'^contact/thanks/(?P.)/$','mysite.books.views.thanks'), will direct to the thanks function which you call as: def thanks(request,sender) and this thanks function loads the thanks template with

Re: Question about urls.py

2008-04-21 Thread Alex Morega
On Apr 22, 2008, at 01:30 , jmDesktop wrote: > > What I have in my urls.py file is: > > (r'^contact/thanks/(.)/$','mysite.books.views.thanks'), try this: (r'^contact/thanks/(?P.*)/$','mysite.books.views.thanks'), The idea is to capture the sender part of the URL and pass it on as the "sende

Question about urls.py

2008-04-21 Thread jmDesktop
Hi, I am trying to understand how URLconf works and why I am failing at a simple task. I have this in one my .py files (larger snippet is an email responder from djangobook chap7): return HttpResponseRedirect('/contact/thanks/%s' % sender ) What I have in my urls.py file is: (r'^contact/thank