furby wrote:
> Caught it. Haha. What a funny bug. From models.py:
>
> 196 d = dt.datetime.today()
> 197 expires = d.replace(year=d.year+1)
>
> There is no Feb. 29th, 2013. So this breaks. Thx for the help!
>
> On Feb 29, 9:50 am, Tom Evans wrote:
>> On Wed, Feb 29, 2012 at 3:33 PM, furby
use something like >>> d + datetime.timedelta(days=365)
http://docs.python.org/library/datetime.html#timedelta-objects
Cheers,
AT
On Wed, Feb 29, 2012 at 12:59 PM, furby wrote:
> Caught it. Haha. What a funny bug. From models.py:
>
> 196 d = dt.datetime.today()
> 197 expires = d.replace(ye
Caught it. Haha. What a funny bug. From models.py:
196 d = dt.datetime.today()
197 expires = d.replace(year=d.year+1)
There is no Feb. 29th, 2013. So this breaks. Thx for the help!
On Feb 29, 9:50 am, Tom Evans wrote:
> On Wed, Feb 29, 2012 at 3:33 PM, furby wrote:
> > The guy I built thi
On Wed, Feb 29, 2012 at 3:33 PM, furby wrote:
> 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.
Custome
^products/(?P\w+)/?$', 'object_detail',
product_detail ),
32 (r'^links/?$', 'object_list', link_list ),
33 )
34 """
On Feb 29, 9:22 am, Tom Evans wrote:
> On Wed, Feb 29, 2012 at 3:09 PM, furby wrote:
> > A site I built several years ag
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/
>
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
Resolved. Don't know how.
On Jun 14, 9:16 pm, Chris Haynes <[EMAIL PROTECTED]> wrote:
> This error goes away if I remove the line
> (r'^ptree/$', mysite.trees.views.parse_tree),
> from the urlpatterns. But I can import trees.views from the shell
>
> ~/dj/mysite 144: manage.py shell
> Python 2
This error goes away if I remove the line
(r'^ptree/$', mysite.trees.views.parse_tree),
from the urlpatterns. But I can import trees.views from the shell
~/dj/mysite 144: manage.py shell
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyri
On Thu, May 29, 2008 at 2:23 PM, nib <[EMAIL PROTECTED]> wrote:
> OK, I put ROOT_URLCONF = {{ project_name }}.urls back in the c:
> \python25\Lib\site-packages\django\conf\project_template\settings.py
> file.
Er...this is the settings file you've been editing? This one is not
intended to be edi
OK, I put ROOT_URLCONF = {{ project_name }}.urls back in the c:
\python25\Lib\site-packages\django\conf\project_template\settings.py
file.
I then create a new package - jrl.
I then tried to access the admin site and I got a DATABASE_ENGINE not
set error.
I set the DATABASE_ENGINE to 'SQLite3' and
On Thu, May 29, 2008 at 11:15 AM, nib <[EMAIL PROTECTED]> wrote:
>
> it is ROOT_URLCONF = 'csp.urls' in the settings.py file. Caps locks
> must have been on when I typed those 3 letters.
>
And is your directory lowercase 'csp' as well? Case matters.
I'm confused how your settings file had: RO
it is ROOT_URLCONF = 'csp.urls' in the settings.py file. Caps locks
must have been on when I typed those 3 letters.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
On Thu, 2008-05-29 at 06:56 -0700, nib wrote:
> As you can see there is not reference to {{ project_name }}.urls in
> this file, there is a reference in settings.py, I changed it to:
> ROOT_URLCONF = 'CSP.urls'
>
> but now I get the same error as above but with this
URLCONF = 'CSP.urls'
but now I get the same error as above but with this reference:
Error while importing URLconf 'csp.urls': No module named csp.urls
Please advise.
nib
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
.0.0.1:8000/). I had created a folder 'c:\project\test' and I
> started up the server from this folder (python manage.py runserver)
> with no errors. This is on a Windows 2000 Professional OS.
>
>
> ImproperlyConfigured at /admin/
> Error while importing URLconf '{{ pr
from this folder (python manage.py runserver)
with no errors. This is on a Windows 2000 Professional OS.
ImproperlyConfigured at /admin/
Error while importing URLconf '{{ project_name }}.urls': No module
named {{ project_name }}.urls
Request Method: GET
Request URL: http://127.0.0.1:8000/a
On Sat, 2007-12-22 at 00:53 -0800, shabda wrote:
> Ok I found the error, but I still cant understand why this is
> happening. What I did was that, in the blogango.urls, I have a line
> like
>
> import feeds
>
> THe feeds.py is,
>
> class main_feed (Feed):
> blog = Blog.objects.all()[0]
Th
sed?
On Dec 22, 1:26 pm, shabda <[EMAIL PROTECTED]> wrote:
> Getting this error, "Error while importing URLconf 'blogango.urls':
> list index out of range". The exception stack does not give any cles
> to what might be wrong. The exception stack is,
> Tra
Getting this error, "Error while importing URLconf 'blogango.urls':
list index out of range". The exception stack does not give any cles
to what might be wrong. The exception stack is,
Traceback:
File "C:\Python24\lib\site-packages\django\core\handlers\base
Le 27.11.2007 18:35,, le perspicace Karen Tracey s'exprimait en ces termes:
> On Nov 27, 2007 11:46 AM, <[EMAIL PROTECTED]> wrote:
>> from django.shortcuts import render_to_reponse
>
> You are missing the first 's' here in render_to_response.
>
> Karen
On Nov 27, 2007 11:46 AM, <[EMAIL PROTECTED]> wrote:
>
>
> Le 27.11.2007 17:40,, le perspicace James Bennett s'exprimait en ces termes:
> > On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
> >> But I get this error :
> >> Error while importing
Le 27.11.2007 17:40,, le perspicace James Bennett s'exprimait en ces termes:
> On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
>> But I get this error :
>> Error while importing URLconf 'myblog.personne.urls': cannot import name
>> render_to_repon
On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
> But I get this error :
> Error while importing URLconf 'myblog.personne.urls': cannot import name
> render_to_reponse
One of your views is trying to use render_to_response, but is
apparently looking in the
personne_new),
(r'^edit/(?P\d+)/$', personne_edit),
(r'^delete/(?P\d+)/$', personne_delete),
(r'^search/([A-Za-z]+)/$', personne_search),
(r'^liste/$', personne_list),
)
But I get this error :
Error while importing URLconf 'myblog.personne.u
25 matches
Mail list logo