Wednesday, July 4, 2012

Re: cannot access admin

Yes, and this is a little embarrassing I was missing a line from the debugging output.

/home/tacobake/Source Code/Python (Komodo)/tacobakedotnet/../tacobakedotnet/dotnet_forms/views.py in home
  1.             article = Article.objects.get(menu__menu_title = menu, article_title__startswith=item)  

So that is where the word "Article" comes from in the earlier error message.

Now having said that I believe it is the permissiveness of the \S+ \S+ which may very well be what the problem is, I am going to change it but I need to learn a bit more first.  Basically I need the best way to pass a pair of options to the view function, which also just happen to be the URL, I was reading about it in the basic documentation for urls.  I do appreciate everyone's help.

Like if I set it to:

url(r'^source-code/(\S+)', ...) that is not dynamic enough for the view function, "Source Code" or source-code being the menu_title.

On Wednesday, July 4, 2012 6:34:10 PM UTC-4, Tomas Neme wrote:
On Wed, Jul 4, 2012 at 7:33 PM, Tomas Neme <lacrymology@gmail.com> wrote:
> ah, got it... your
>
>  url(r'^(\S+)/(\S+)', 'tacobakedotnet.dotnet_forms.views.home'),
>
> is too permisive

...

maybe?

--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/b8SobMx4jtkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate