Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-14 Thread TITAS ONLINE MARKET
Setting up a new Django project doesn't require much code copying, my friend. This can be done more simply and easily. You follow the new tutorial. Also if you have problem knock me I don't know much but I would be happy to discuss with you. On Tuesday, April 11, 2023 at 6:44:53 PM UTC+6 Michae

Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-11 Thread Michael Starr
You probably weren't careful enough following instructions. The beginner's tutorial is self-contained and allows a complete Django project to be made. Re-read everything word-for-word and then come back with some hypotheses for us to test for you. Michael On Tuesday, April 4, 2023 at 9:44:38 AM

Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-04 Thread Tanveer
0 I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has it, word for word, but when I go to http://12

Re: Including URLconf

2022-03-08 Thread John Dollosa
Do you have a variable called PollsConfig inside this file ( *mainsite/apps.py*) If yes, can you change *polls.apps.PollsConfig* in your INSTALLED_APPS into *mainsite.apps.PollsConfig* On Tuesday, 8 March 2022 at 21:55:08 UTC+8 alec...@gmail.com wrote: > these are my folders. the only thing t

Re: Including URLconf

2022-03-08 Thread Alec Greenholdt
these are my folders. the only thing the tutorial had me create upon creation of the project and app was a urls.py file inside my "mainsite" folder. and I show in the code above what it had me add. those are the only things I have done On Tuesday, March 8, 2022 at 7:12:23 AM UTC-6 jmizpaha...@g

Re: Including URLconf

2022-03-08 Thread John Dollosa
Question: Do you have a folder named polls in your project directory? And inside that directory there's an apps.py file? On Tuesday, 8 March 2022 at 11:47:56 UTC+8 alec...@gmail.com wrote: > > this is what i did and it changed nothing. i also don't know what exactly > you mean by app because I

Re: Including URLconf

2022-03-07 Thread Alec Greenholdt
this is what i did and it changed nothing. i also don't know what exactly you mean by app because I don't believe I ever created an app. as shown above the code 2 lines of code with polls is the only thing I've added as shown in the tutorial On Monday, March 7, 2022 at 8:47:46 PM UTC-6 guitard

Re: Including URLconf

2022-03-07 Thread David Crandell
That's definitely your problem. Include the app under INSTALLED_APPS - put "app_name.apps.AppNameConfig" with app_name being the name of your app. On Monday, March 7, 2022 at 11:35:40 AM UTC-6 alec...@gmail.com wrote: > this is the installed apps in settings.py I haven't touched it. i only did

RE: Including URLconf

2022-03-07 Thread Justin Kpakpa
Sent from my GalaxyVisit your settings.py file and include the app in INSTALLED_APPS. Check if that works. Original message From: Alec Greenholdt Date: 07/03/2022 00:24 (GMT+00:00) To: Django users Subject: Including URLconf as described in the documentation i am putting

Re: Including URLconf

2022-03-07 Thread David Crandell
Do you have the app imported in the settings.py? Also try using the "app_name" var in each of your urls.py files. On Sunday, March 6, 2022 at 10:29:23 PM UTC-6 alec...@gmail.com wrote: > > if i try to migrate, this error pops up as well > On Sunday, March 6, 2022 at 6:24:44 PM UTC-6 Alec Greenho

Re: django.core.exceptions.ImproperlyConfigured: The included URLconf 'simplesocial.urls' does not appear to have any patterns in it

2020-07-07 Thread Evolution2020 evo
check your URL's and views first are they configured well On Tuesday, July 7, 2020 at 3:37:37 PM UTC+3, Zabihullah Danish wrote: > > *Dear Friends greetings* > since couple of days i am having the error see in attached file while i am > running *python manage.py runserver *getting the attached er

django.core.exceptions.ImproperlyConfigured: The included URLconf 'simplesocial.urls' does not appear to have any patterns in it

2020-07-07 Thread Exactly musty
Show your URLs.py and your imports -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web

Problema con dos formularios en una plantilla. Error " Generic detail view addAutorXlibro must be called with either an object pk or a slug in the URLconf."

2019-03-21 Thread Diego Puerta
f.get_success_url()) else: return self.render_to_response(self.get_context_data(form=form, form2=form)) *Plantilla* {% block contenido %} {% csrf_token %} {{ form2.as_p }} --- {{ form.as_p }} Guardar {% endblock %} *url* path(&

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-23 Thread Manjunath
You are welcome. I suggest you go through the documentation & guide carefully and work accordingly.. I learned the same way!! On Wednesday, October 24, 2018 at 8:17:06 AM UTC+5:30, Bugs Bunny wrote: > > i use this and work, thanks (y) > > On Tue, Oct 23, 2018 at 1:04 AM Manjunath > wrote: > >>

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-23 Thread Bugs Bunny
i use this and work, thanks (y) On Tue, Oct 23, 2018 at 1:04 AM Manjunath wrote: > Your project urls are set to address starting with admin & polls. > > You can browse *localhost:8000/polls/* > > On Monday, October 22, 2018 at 11:06:22 PM UTC+5:30, Bugs Bunny wrote: >> >> Regards for the answers

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-22 Thread Manjunath
Your project urls are set to address starting with admin & polls. You can browse *localhost:8000/polls/* On Monday, October 22, 2018 at 11:06:22 PM UTC+5:30, Bugs Bunny wrote: > > Regards for the answers this is my input > > On Sun, Oct 21, 2018 at 8:15 AM Motaz Hejaze > wrote: > >> first , no s

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-21 Thread Motaz Hejaze
first , no spaces are allowed in URLS as Manjunath said replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result. second , run the server python manage.py runserver third check the url go to http://127.0.0.1:8000/polls On S

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-21 Thread Manjunath
I think you have a space in your url path. replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result. On Friday, October 19, 2018 at 4:59:10 PM UTC+5:30, Bugs Bunny wrote: > > Greetings django team, I'm a newbie with this fra

Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-19 Thread Bugs Bunny
Greetings django team, I'm a newbie with this framework but I have experience with python, I did the first tutorial and it throws me a 404 error, I saw that in the previous versions we used a r'formated 'string and indicated the beginning ^ and the end $ but in version 2.1 is no longer used, ch

Re: django URLconf current path didn't match

2018-03-11 Thread Jason
and you're getting this from the URL *localhost:8000/polls/ *? On Saturday, March 10, 2018 at 8:31:34 AM UTC-5, Usman Gill wrote: > > Using the URLconf defined in mysite.urls, Django tried these URL patterns, > in this order: > > polls/ [name='index'] > a

django URLconf current path didn't match

2018-03-10 Thread Usman Gill
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: polls/ [name='index'] admin/ The current path, polls/, didn't match any of these. My code is... from (app)polls urls.py from django.urls import pathfrom . import views urlpatter

Re: URLconf problem: why I'm geting 404 error when I should'nt?

2016-08-23 Thread Lao Zzi
read the django tutorial first. There is good django tutorial on the official site and also there is "django girls" tutorial on the internet. Both of them is good. Django doesn't see your urlconf. See at error, django find only ^admin/ regex. Your regex is not finded, so you h

Re: urlconf problem

2014-08-06 Thread Joel Goldstick
On Wed, Aug 6, 2014 at 8:22 AM, Collin Anderson wrote: > shouldn't it be: > > urlpatterns = patterns('', > ) > Thanks for catching that! As it ended up, the problem was in the blog_app view code. When I ported from earlier version I had to edit some things, and I had bad code in the view that ne

Re: urlconf problem

2014-08-06 Thread Collin Anderson
shouldn't it be: urlpatterns = patterns('', ) And blog_app/__init__.py and blog_app/urls.py exist? Could you include a longer traceback? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: urlconf problem

2014-08-06 Thread Erik Cederstrand
Den 06/08/2014 kl. 01.00 skrev Joel Goldstick : > I have this: > > from django.conf.urls import patterns, include, url > > from django.contrib import admin, admindocs > import blog_app > > admin.autodiscover() > > patterns = patterns('', >url(r'^admin/doc/', include(admindocs.urls)), >

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
what's strange to me is that I can comment out each of the urls and I get basically the same error message. When all three are gone, it complains there are no urls. But I'm stuck on thinking I have a type. background: this was a 1.3 project that I converted to 1.6 today using virtualenv to keep

Re: urlconf problem

2014-08-05 Thread Lachlan Musicman
Bugger - I find that error when left out of the settings or the wsgi points to the wrong settings file. Usually when I'm swapping between envs "settings.dev" "settings.prod" L. On 6 August 2014 09:44, Joel Goldstick wrote: > On Tue, Aug 5, 2014 at 7:15 PM, Lachlan Musicman wrote: >> Make sure t

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
On Tue, Aug 5, 2014 at 7:15 PM, Lachlan Musicman wrote: > Make sure the blog_app is in your settings.py? It is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.c

Re: urlconf problem

2014-08-05 Thread Lachlan Musicman
Make sure the blog_app is in your settings.py? On 6 August 2014 09:00, Joel Goldstick wrote: > I have this: > > from django.conf.urls import patterns, include, url > > from django.contrib import admin, admindocs > import blog_app > > admin.autodiscover() > > patterns = patterns('', > url(r'^a

urlconf problem

2014-08-05 Thread Joel Goldstick
I have this: from django.conf.urls import patterns, include, url from django.contrib import admin, admindocs import blog_app admin.autodiscover() patterns = patterns('', url(r'^admin/doc/', include(admindocs.urls)), url(r'^blog/', include(blog_app.urls)), url(r'^admin/', include(adm

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Lachlan Musicman
Are you using Debug toolbar? Try this: http://stackoverflow.com/questions/20963856/improperlyconfigured-the-included-urlconf-project-urls-doesnt-have-any-patte cheers L. On 4 April 2014 11:14, Max Demars wrote: > Greetings, > > I encounter the same error here. In latest gunicorn rele

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Max Demars
uot;, > > line 250, in resolve >for pattern in self.url_patterns: > > File > "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %

Re: Different URLCONF for different domains

2014-03-12 Thread Russell Keith-Magee
l it secondary.com) to be able > to get to this path : primary.com/a/ by entering secondary.com/ > (Both domains have a CNAME record pointing to the same server) > > Is there a way to reconfigure the URLCONF for specific domains so that it > will automatically go to a different urls

Re: Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
Hey, I'm aware of what your saying but I'd I like to reconfigure in a way similar to django-subdomains only instead of specifying the sub domain I'll specify the domain.. Is there a good hack you can think of that can help me in this case? O

Re: Different URLCONF for different domains

2014-03-12 Thread Shawn Milochik
URLs will be processed in the order they appear in your urls.py file. If one of your first entries in urls.py is an "include" that handles all URLs that start with "/a/", then all those requests will be handled by the URL patterns in the included URLs.py. Then, all URLs that don't get "caught" by

Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
entering secondary.com/ (Both domains have a CNAME record pointing to the same server) Is there a way to reconfigure the URLCONF for specific domains so that it will automatically go to a different urls file? Best, Guy -- You received this message because you are subscribed to the Google Groups

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-01-02 Thread Ahmed Khan
Any progress on this? Does anyone know the causes? On Sunday, June 23, 2013 2:55:16 PM UTC+5, Pratik Mandrekar wrote: > > Has anyone been able to resolve this? > > I am facing the same issue. > > On Sunday, March 24, 2013 8:46:26 PM UTC+5:30, Dan Gentry wrote: >> >> Andrei, I once received this er

Re: Keyword arguments passed to ListView.as_view() in urlconf ignored, django 1.5.4

2013-10-29 Thread Chang Sun
Thank you for your reply, Tim. This behavior confuses new users of CBVs. It takes time to learn it. On Tue, Oct 29, 2013 at 10:30 PM, tim wrote: > I don't think so. There is actually a ticket to discontinue this behavior > on the CBVs that do it: https://code.djangoproject.com/ticket/19878 > >

Re: Keyword arguments passed to ListView.as_view() in urlconf ignored, django 1.5.4

2013-10-29 Thread tim
I don't think so. There is actually a ticket to discontinue this behavior on the CBVs that do it: https://code.djangoproject.com/ticket/19878 On Tuesday, October 29, 2013 9:51:06 AM UTC-4, Chang Sun wrote: > > code segment 1: > > url(r'^some_url$', SomeTemplateView.as_view(), {'tab': 'index'}), >

Keyword arguments passed to ListView.as_view() in urlconf ignored, django 1.5.4

2013-10-29 Thread Chang Sun
code segment 1: url(r'^some_url$', SomeTemplateView.as_view(), {'tab': 'index'}), the 'tab' variable can be fetched in the template while in code segment 2: url(r'^some_url$', SomeListView.as_view(), {'tab': 'index'}), the 'tab' variable is missing in the template. I found that in Lib\site-p

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-06-23 Thread Pratik Mandrekar
Has anyone been able to resolve this? I am facing the same issue. On Sunday, March 24, 2013 8:46:26 PM UTC+5:30, Dan Gentry wrote: > > Andrei, I once received this error when the problem was actually in > another python module being imported - in my case views.py. Hope this > helps, Dan -- Y

Re: noob "hello world" problem with URLconf

2013-04-30 Thread Karl
^ is only start with hello. it may be your issues in urls.py Karl Programmer at Olivet Institute of Technology http://oit.olivetuniversity.edu/ 在 2013年4月30日星期二UTC-4下午1时25分41秒,lev...@gmail.com写道: > > what´s up everyone. I just installed Django for the first time, leaving > php in the closet fo

Re: noob "hello world" problem with URLconf

2013-04-30 Thread Andrew Boltachev
Hi. Can you please post your full urls.py? 2013/4/30 > what´s up everyone. I just installed Django for the first time, leaving > php in the closet for a while. > > My problem is concerning the url patterns. I´ve pasted the example "Hello > world" code directly from the django book to urls.py an

noob "hello world" problem with URLconf

2013-04-30 Thread levito
what´s up everyone. I just installed Django for the first time, leaving php in the closet for a while. My problem is concerning the url patterns. I´ve pasted the example "Hello world" code directly from the django book to urls.py and views.py so I´ll leave out all extra code since it has somet

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-03-24 Thread Dan Gentry
Andrei, I once received this error when the problem was actually in another python module being imported - in my case views.py. Hope this helps, Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-03-20 Thread Andrei
ite-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %s doesn't have any > patterns in it" % self.urlconf_name) > > ImproperlyConfigured: The included urlconf myapp.urls doesn't have

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-02-15 Thread Andrei
t;> "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", >> >> line 250, in resolve >>for pattern in self.url_patterns: >> >> File >> "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py&qu

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2012-12-03 Thread Garth Cumming
/venv/myapp/lib/python2.6/site-packages/django/core/urlresolvers.py", > > line 283, in _get_url_patterns >raise ImproperlyConfigured("The included urlconf %s doesn't have any > patterns in it" % self.urlconf_name) > > ImproperlyConfigured: The included urlconf

Django throws ImproperlyConfigured error when loading URLconf on startup

2012-11-28 Thread Michael Dippery
e/urlresolvers.py", line 283, in _get_url_patterns raise ImproperlyConfigured("The included urlconf %s doesn't have any patterns in it" % self.urlconf_name) ImproperlyConfigured: The included urlconf myapp.urls doesn't have any patterns in it --- Others with this prob

Re: how to “break” from a regex in urlconf

2012-08-27 Thread Matthew Meyer
Fantastic solution, thank you so much. I will be sure to loose those phrases from my vocab as well :) On Monday, August 27, 2012 3:18:52 AM UTC-4, Melvyn Sopacua wrote: > > On 27-8-2012 4:14, Matthew Meyer wrote: > > > So the question: Is there a way I can keep the flexible tag regex > redirect

Re: how to “break” from a regex in urlconf

2012-08-27 Thread Melvyn Sopacua
On 27-8-2012 4:14, Matthew Meyer wrote: > So the question: Is there a way I can keep the flexible tag regex redirect > behavior but then "break" from it once I reach a product page? One > important thing to note is that I want to keep the product page within the > built up url scheme like: mens

how to “break” from a regex in urlconf

2012-08-26 Thread Matthew Meyer
I have the following views: def tag_page(request, tag): products = Product.objects.filter(tag=tag) return render(request, 'shop/tag_page.html', {'products': products, 'tag': tag}) def product_page(request, slug): product = Product.objects.get(slug=slug) return render(reque

Re: UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
*From:* DanYun Liu > *Sent:* Friday, April 20, 2012 8:57 AM > *To:* django-users@googlegroups.com > *Subject:* UrlConf problem when capture value from url > > When I use url pattern like this "/search/(\s+)","myview" : django will > set mydomain/search as the root

Re: UrlConf problem when capture value from url

2012-04-20 Thread Daniel Sokolowski
Yes {{STATIC_URL}} - https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles Does that help? From: DanYun Liu Sent: Friday, April 20, 2012 8:57 AM To: django-users@googlegroups.com Subject: UrlConf problem when capture value from url When I use url pattern

UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
When I use url pattern like this "/search/(\s+)","myview" : django will set mydomain/search as the root domain, so the css and js will not request correctly: in my template: the request url for the index.css is: http://mydomain/search/styles/index.css but not: http://mydomain/styles/index.css

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Kev Dwyer
environment. Only production for this. >> >> Customer is always right. Plus, job for life ;) >> >> >> >> > Here's the urlconf. I've literally commented out every urlpattern >> > expect the top one on line 4. Still br

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Andre Terra
> > > it's still on .96. And yet when something breaks randomly he wonders > > > why. Debug enabled today for debugging. There is no dev > > > environment. Only production for this. > > > > Customer is always right. Plus, job for life ;) > > >

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
Plus, job for life ;) > > > > > Here's the urlconf.  I've literally commented out every urlpattern > > expect the top one on line 4.  Still breaks: > > >  1 from django.conf.urls.defaults import * > >  2 from permitprint.app.models

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Tom Evans
oduction for this. Customer is always right. Plus, job for life ;) > > Here's the urlconf.  I've literally commented out every urlpattern > expect the top one on line 4.  Still breaks: > >  1 from django.conf.urls.defaults import * >  2 from permitprint.ap

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
The guy I built this for does not want to pay me to maintain it, so it's still on .96. And yet when something breaks randomly he wonders why. Debug enabled today for debugging. There is no dev environment. Only production for this. Here's the urlconf. I've literally comm

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Tom Evans
f_module.urlpatterns: > File "/home/nolenjb/django/django_src/django/core/urlresolvers.py" in > _get_urlconf_module >  180. raise ImproperlyConfigured, "Error while importing URLconf %r: > %s" % (self.urlconf_name, e) > >  ImproperlyConfigured at /admin/ >

Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
in _get_urlconf_module 180. raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) ImproperlyConfigured at /admin/ Error while importing URLconf 'permitprint.urls': day is out of range for month -- You received this message because you ar

How to write startup tests for urlconf?

2011-08-06 Thread Evgeny
Hello, Is it possible to somehow interrogate url configuration at startup time? I am trying to give users a meaningful message when something needs to be changed in the url configuration. For example - now I need to change the handler500 and handler404, when my app is upgraded. Tried many ways,

Re: Parenthesis in regex in URLConf

2011-05-23 Thread Pedram
Thanks but I still have problem. My URLConf is like this: Thank you very much. Problem Solved :) On May 23, 1:39 pm, Tom Evans wrote: > On Mon, May 23, 2011 at 10:25 AM, Pedram wrote: > > Hello, > > I have a regular expression for usernames and I want to use this regex > &

Re: Parenthesis in regex in URLConf

2011-05-23 Thread Tom Evans
On Mon, May 23, 2011 at 10:25 AM, Pedram wrote: > Hello, > I have a regular expression for usernames and I want to use this regex > in my URLConf and bind that to a view. The problem is, I have > parenthesis in my regex which should not consider as *args*. Here's my > re

Parenthesis in regex in URLConf

2011-05-23 Thread Pedram
Hello, I have a regular expression for usernames and I want to use this regex in my URLConf and bind that to a view. The problem is, I have parenthesis in my regex which should not consider as *args*. Here's my regex: ^[a-zA-Z0-9]+((\.[a-zA-Z0-9]+)|(_[a-zA-Z-0-9]+))*$ Values in &#x

TemplateView and dynamic template_name in urlconf

2011-05-17 Thread Brian Morton
I have a generic view that accepts its template_name attribute from the urlconf dynamic variable: (r'^(?P[^/]+)$', TemplateView.as_view()), But I get an exception: TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_templat

Re: django-pluggables urlconf problem (NoReverseMatch TemplateSyntaxError)

2011-02-25 Thread Andre Terra
set it up. The documentation is slender and the > > example app has the same name as its one and only model, which is very > > different from my case. So far, a lot is working, but the pluggable > urlconf > > has been giving me a real hard time for a couple of days now. >

Re: django-pluggables urlconf problem (NoReverseMatch TemplateSyntaxError)

2011-02-25 Thread Nowell Strite
t is working, but the pluggable urlconf > has been giving me a real hard time for a couple of days now. > > I have a main app called 'analysis' that defines models Order and Customer. > I also have a secondary app called 'report' which I would like to use to > gen

django-pluggables urlconf problem (NoReverseMatch TemplateSyntaxError)

2011-02-24 Thread Andre Terra
y case. So far, a lot is working, but the pluggable urlconf has been giving me a real hard time for a couple of days now. I have a main app called 'analysis' that defines models Order and Customer. I also have a secondary app called 'report' which I would like to use to gen

Re: noob question about URLconf

2010-10-09 Thread lyrical
Thanks, I indeed did not run my manage.py file. On Oct 9, 5:35 am, Andi Trînculescu wrote: > You probably didn't run manage.py runserver. > You also need to install your app in settings.py > > On Oct 9, 12:50 am, lyrical wrote: > > > I'm following the Django book but run into a pathing problem (

Re: noob question about URLconf

2010-10-09 Thread Andi Trînculescu
it looks like your dev server isn't running. On Oct 9, 12:50 am, lyrical wrote: > I'm following the Django book but run into a pathing problem (I think) > I did exactly what the book said, even copying and pasting the code as > to make sure I didn't make a typo. > > so in the views.py I have > >

Re: noob question about URLconf

2010-10-09 Thread Andi Trînculescu
You probably didn't run manage.py runserver. You also need to install your app in settings.py On Oct 9, 12:50 am, lyrical wrote: > I'm following the Django book but run into a pathing problem (I think) > I did exactly what the book said, even copying and pasting the code as > to make sure I didn'

noob question about URLconf

2010-10-08 Thread lyrical
I'm following the Django book but run into a pathing problem (I think) I did exactly what the book said, even copying and pasting the code as to make sure I didn't make a typo. so in the views.py I have from django.http import HttpResponse def hello(request): return HttpResponse("Hello world")

Re: error in urlconf

2010-09-25 Thread Tim Sawyer
On 25/09/10 21:14, bagheera wrote: Dnia 25-09-2010 o 22:04:16 Tim Sawyer napisał(a): On 25/09/10 20:39, CarloRatm wrote: http://pastebin.com/aY6tZm6j What's wrong with that code ? Thank you, cheers ^blog/ ^(?Pd+)$ should be ^blog/ ^(?P\d+)/$ ?? Tim. use raw definitions like django

Re: error in urlconf

2010-09-25 Thread bagheera
Dnia 25-09-2010 o 22:04:16 Tim Sawyer napisał(a): On 25/09/10 20:39, CarloRatm wrote: http://pastebin.com/aY6tZm6j What's wrong with that code ? Thank you, cheers ^blog/ ^(?Pd+)$ should be ^blog/ ^(?P\d+)/$ ?? Tim. use raw definitions like django docs says. And why do u put ^ wit

Re: error in urlconf

2010-09-25 Thread Tim Sawyer
On 25/09/10 20:39, CarloRatm wrote: http://pastebin.com/aY6tZm6j What's wrong with that code ? Thank you, cheers ^blog/ ^(?Pd+)$ should be ^blog/ ^(?P\d+)/$ ?? Tim. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: error in urlconf

2010-09-25 Thread bagheera
Dnia 25-09-2010 o 21:39:15 CarloRatm napisał(a): http://pastebin.com/aY6tZm6j What's wrong with that code ? Thank you, cheers http://docs.djangoproject.com/en/1.2/topics/http/urls/#example And check what ^ char mean http://en.wikipedia.org/wiki/Regular_expression_examples -- Linux user

error in urlconf

2010-09-25 Thread CarloRatm
http://pastebin.com/aY6tZm6j What's wrong with that code ? Thank you, cheers -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to dja

Re: URLConf

2010-06-16 Thread Rolando Espinoza La Fuente
On Wed, Jun 16, 2010 at 11:48 PM, Siddharth. S wrote: > Hi, > > I did the following to allow the page to be loaded with or without the > '/' at the end: > > (r'^mysite(/*)$', redirect_to, {'url':'/mysite/home/'}), > > in URL patterns. I got an error page, and the following error: > > Exception Typ

URLConf

2010-06-16 Thread Siddharth. S
Hi, I did the following to allow the page to be loaded with or without the '/' at the end: (r'^mysite(/*)$', redirect_to, {'url':'/mysite/home/'}), in URL patterns. I got an error page, and the following error: Exception Type: TypeError at /mysite/ Exception Value: redirect_to() got multiple va

Re: Django not reading the URLConf (urls.py)

2010-02-28 Thread Rodrigo
I checked the ROOT_URLCONF and it was fine, and deleted all the *.pyc, without good results, but finally I found the problem. There was a copy of the same project in some other folder under the PYTHONPATH, so there was some kind of collision. Thanks everybody for helping me out. On Feb 28, 1:57 am

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 9:23 PM, piz...@gmail.com wrote: > Yes Karen, that's what I thought from the beginning, something is broken in > my Python installation, I'll explain it better. I'm currently using django > dev server and it doesn't update the .pyc files, let's say I just change a > line i

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Prabhu
Did you check ROOT_URLCONF in settings.py? On Feb 27, 8:34 pm, Rodrigo wrote: > If I update any line on the urls.py, this doesn't reflect on the > server. I can even DELETE the file, and all the urls are still > working. I've tried restarting runserver many times, even restarting > the computer,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread piz...@gmail.com
El 28/02/2010, a las 1:03, Karen Tracey wrote: If you are routinely needing to delete .pyc files after making code changes in the corresponding .py files, something is broken. The post I responded to stated: "Python generates a compiled version of the file, and if you don't delete it, it nev

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Kenneth Loafman
Karen Tracey wrote: > On Sat, Feb 27, 2010 at 6:31 PM, Kenneth Loafman > mailto:kenneth.loaf...@gmail.com>> wrote: > > Karen Tracey wrote: > > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > > > > >

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 6:31 PM, Kenneth Loafman wrote: > Karen Tracey wrote: > > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > > mailto:piz...@gmail.com>> > > wrote: > > > > Did you delete the .pyc files? Python generates a compiled version > > of the file,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Kenneth Loafman
Karen Tracey wrote: > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > mailto:piz...@gmail.com>> > wrote: > > Did you delete the .pyc files? Python generates a compiled version > of the file, and if you don't delete it, it never get's updated. At > least it

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com wrote: > Did you delete the .pyc files? Python generates a compiled version of the > file, and if you don't delete it, it never get's updated. At least it's the > problem I have. So if you update views.py and don't delete the old view.pyc > file,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread piz...@gmail.com
Did you delete the .pyc files? Python generates a compiled version of the file, and if you don't delete it, it never get's updated. At least it's the problem I have. So if you update views.py and don't delete the old view.pyc file, it will work as the old version. El 27/02/2010, a las 21:

Django not reading the URLConf (urls.py)

2010-02-27 Thread Rodrigo
If I update any line on the urls.py, this doesn't reflect on the server. I can even DELETE the file, and all the urls are still working. I've tried restarting runserver many times, even restarting the computer, and nothing happens. The last test I did was deleting settings.py, to see if there was

Re: Named urls and urlconf includes are incompatible

2010-02-08 Thread adambossy
Bingo. The value should have been invitation_key and not invitation_key.key. Good catch! On Feb 8, 3:41 pm, Karen Tracey wrote: > On Mon, Feb 8, 2010 at 6:24 PM, adambossy wrote: > > I'm trying to install the django-invitation app on bitbucket, but I'm > > running into an error I've been seeing

Re: Named urls and urlconf includes are incompatible

2010-02-08 Thread Karen Tracey
On Mon, Feb 8, 2010 at 6:24 PM, adambossy wrote: > I'm trying to install the django-invitation app on bitbucket, but I'm > running into an error I've been seeing repeatedly with urls. I've > googled this and various permutations have occurred to various people, > but not this one in particular. T

Named urls and urlconf includes are incompatible

2010-02-08 Thread adambossy
I'm trying to install the django-invitation app on bitbucket, but I'm running into an error I've been seeing repeatedly with urls. I've googled this and various permutations have occurred to various people, but not this one in particular. The general problem occurs when I try to include a url confi

Re: use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-07 Thread Justin L
ine again. What am I missing in being able to use URLConf for cache_page control and add vary on cookie to the headers? On Jan 6, 4:10 am, Victor Lima wrote: > Off topic side note: beware if you use vary on cookie and google   > analytics, since analytics cookies changes a lot you are actua

Re: use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-06 Thread Victor Lima
several months, we have been caching views using the URLconf method (urls.py). An entry from urls.py is below as an example: url(r'^(?P.*)/content/(?P[-\w]+)/$$', cache_page (hierarchies.views.category_content_detail, CACHE_TIMEOUT), name='category_content_detail'), Recently,

use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-05 Thread Justin L
For several months, we have been caching views using the URLconf method (urls.py). An entry from urls.py is below as an example: url(r'^(?P.*)/content/(?P[-\w]+)/$$', cache_page (hierarchies.views.category_content_detail, CACHE_TIMEOUT), name='category_content_detail'), Rec

urlconf doesn't coerce

2009-06-11 Thread notcourage
From: http://docs.djangoproject.com/en/dev/topics/http/urls/#topics-http-urls Each captured argument is sent to the view as a plain Python string, regardless of what sort of match the regular expression makes. * * * Does anybody think it would be nice to specify coercions like you can on TypedC

Re: Strange: named URL only works in root urlconf..

2009-06-06 Thread Karen Tracey
On Fri, Jun 5, 2009 at 8:17 AM, gnijholt wrote: > > I've used named URLs for some time now, never had any trouble with > them. > But now I have added an app 'website' to a new Django project. > (version 1.1 beta 1 SVN-10924) > > My root urlconf (as defined in

Strange: named URL only works in root urlconf..

2009-06-05 Thread gnijholt
I've used named URLs for some time now, never had any trouble with them. But now I have added an app 'website' to a new Django project. (version 1.1 beta 1 SVN-10924) My root urlconf (as defined in settings.py) contains an include to website.urls: --- urlpatterns = patterns('

  1   2   >