File "D:\Learning &
Interest\Computer\Web\projects\simplesocial\simplesocial\posts\urls.py",
line 5, in
from . import views
File "D:\Learning &
Interest\Computer\Web\projects\simplesocial\simplesocial\posts\views.py",
line 9, in
from braces.views import SelectedRelatedMixin
Unfortunately I can't reproduce it. It happens sometimes on production
environment. It disappears as soon as django processes are restarted.
On 27 Kwi, 16:51, Shawn Milochik wrote:
> If you know how to cause this error, run manage.py shell and import or
> instantiate whatever
If you know how to cause this error, run manage.py shell and import or
instantiate whatever you have to in order to make this happen.
The traceback you get there will be more useful.
Shawn
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To
The error keeps happening. Here is another trace:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/
base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File
Thanks for immediate answer. Here is my manager:
class PageManager(models.Manager):
def active(self):
return
self.active_with_expired().filter(Q(expire_time__exact=None) |
Q(expire_time__gt=datetime.now()))
def active_with_expired(self):
return self.filter(active=True,
On Tuesday, April 26, 2011 2:32:35 PM UTC+1, Czare1 wrote:
>
> Once for a while I get very strange error. It's listed below. I
>
> Traceback (most recent call last):
>
> File "/usr/local/lib/python2.7/site-packages/django/core/handlers/
> base.py", line 111, in get_response
> response =
Once for a while I get very strange error. It's listed below. I
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/
base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File
> type object 'MeetingTalkInline' has no attribute 'date_hierarchy'
date_hierarchy is an attribute expected to be with every 'normal'
admin classes. Why do django tries to search it in your inline admin?
Just because you have registered it as you do with normal admins.
Usually, inlines are not to
Hi,
I'm trying to use inline models, and I've configured my admin.py like so.
from django.contrib import admin
from opag.main.models import Notice, Meeting, MeetingTalk
class NoticeAdmin(admin.ModelAdmin):
list_display = ('title', 'visible')
list_display_links = ('title',)
class
Hi Thomasz Zielinski,
On Jan 20, 6:38 pm, Tomasz Zieliński
wrote:
> On 20 Sty, 20:52, HWM-Rocker wrote:
>
> > o...@olaf-laptop:~/workspace/truemen$ ./manage.py shell
>
> Not touching you question, you could try shell_plus from django-
>
On 20 Sty, 20:52, HWM-Rocker wrote:
> o...@olaf-laptop:~/workspace/truemen$ ./manage.py shell
Not touching you question, you could try shell_plus from django-
extensions,
it load all models on startup, saving you a lot of typing.
Moreover you could try ipython (which is
Hello Everybody,
i got a strange error when i am trying to test some code out of
pycrust. I have a small script that sets the environment variable and
starts pycrust.
o...@olaf-laptop:~/workspace/truemen$ cat debug-shell.sh
#!/bin/bash
cd /home/olaf/workspace/ && export
12 matches
Mail list logo