One thing you might consider is using a prefix for article URLs so that
you can more easily differentiate them from other URLs. For example:
r'^articles/(\S+)/(\S+)' . Then, rather than a URL like
/source-code/c++, you'd have /articles/source-code/c++.
_Nik
On 7/4/2012 5:59 PM, Scott Somers wrot
here we go I actually had a typo that slipped in, everything is working
perfectly now thanks again to everyone.
urlpatterns = patterns('',
(r'^media/(?P.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT }),
)
urlpatterns += patterns('',
url(r'^$', 'tacobakedotnet.
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__start
And actually, \S matches forward slashes, so even something like
/one/two/foo/bar would match.
_Nik
On 7/4/2012 3:40 PM, Nikolas Stevenson-Molnar wrote:
> Yes. \S+/\S+ will match /. Since /admin doesn't
> contain a slash (other than the leading slash, which isn't considered),
> it works fine. But
Yes. \S+/\S+ will match /. Since /admin doesn't
contain a slash (other than the leading slash, which isn't considered),
it works fine. But /admin/whatever will get directed to your
tacobakedotnet.dotnet_forms.views.home view because it matches the URL
pattern. An easy fix would be to make sure your
On Wed, Jul 4, 2012 at 7:33 PM, Tomas Neme 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|_|
|_|_|
ah, got it... your
url(r'^(\S+)/(\S+)', 'tacobakedotnet.dotnet_forms.views.home'),
is too permisive
On Wed, Jul 4, 2012 at 6:54 PM, Scott Somers
wrote:
>
> /Local Python Source Code/tacobakedotnet
> manage.py
> settings.py
> urls.py
> /Local Python Source Code/tacobakedotnet/media
> JavaScript
/Local Python Source Code/tacobakedotnet
manage.py
settings.py
urls.py
/Local Python Source Code/tacobakedotnet/media
JavaScript files
/Local Python Source Code/tacobakedotnet/dotnet_forms
models.py
tests.py
views.py
/Local Python Source Code/tacobakedotnet/dotnet_forms/static
CSS files
What it is
On 4-7-2012 19:18, Scott Somers wrote:
> My urls
>
> urlpatterns = patterns('',
> (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root':
> settings.MEDIA_ROOT }),
> )
>
> urlpatterns += patterns('',
> url(r'^$', 'tacobakedotnet.dotnet_forms.views.home'),
> url(r'^(\S+)/(
Are you running admin.autodiscover? Does the admin homepage (/admin/) show your
apps?
-Mensaje original-
De: Scott Somers
Enviados: 04/07/2012 14:18:45
Asunto: cannot access admin
So I don't normally spam forums/ mailing lists etc for help but I really
screwed something up. Basicall
10 matches
Mail list logo