Re: Django Debug Toolbar 1.0 beta released

2013-12-21 Thread Aymeric Augustin
Hello,

I just released 1.0 final. Enjoy!

-- 
Aymeric.

Le dimanche 15 décembre 2013 14:11:50 UTC+1, Aymeric Augustin a écrit :
>
> Hello,
>
> I'm happy to annonce that we're almost ready to release version 1.0 of the 
> Debug Toolbar! Now we need your help to try the beta:
>
> https://github.com/django-debug-toolbar/django-debug-toolbar/releases/tag/1.0-beta
>
> The documentation is available on Read the Docs — make sure you read the 
> "latest" version as there are many changes since 0.11:
> http://django-debug-toolbar.readthedocs.org/en/latest/
>
> Note that the setup process is different from previous versions:
>
> http://django-debug-toolbar.readthedocs.org/en/latest/installation.html#quick-setup
>
> Please report issues on GitHub:
> https://github.com/django-debug-toolbar/django-debug-toolbar/issues
>
> If no major problems are found, we'll release 1.0 in one week.
>
> Here are the main changes from version 0.9.x and earlier. (Versions 0.10 
> and 0.11 were transitory versions leading to 1.0; they were released to 
> validate some choices before committing to support them for the lifetime of 
> 1.x.)
>
> - Panels are now rendered on demand, solving the "20MB HTML page" problem
> - Panels can be individually disabled from the frontend, in case a panel 
> degrades performance severely on a page
> - Interception of redirects can be toggled from the frontend
> - The handle can be dragged along the right side, in case it hides exactly 
> the part of the page you're working on :-) 
> - Static files are managed with django.contrib.staticfiles, solving a 
> series of URL-related issues
> - The setup process was rewritten, to provide a simplified automatic setup 
> and an optional explicit setup
> - Panels and settings received shorter or better names
> - A stable API for third-party panels is documented
> - The core of the toolbar was simplified drastically and almost all the 
> code was refactored into panels
> - The toolbar was made compatible with all current versions of Django and 
> Python, including Python 3.
> - The test suite was expanded and gained Selenium tests
> - Dozens of bugs were fixed
>
> I hope you'll like it!
>
> -- 
> Aymeric.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46f6f7b3-5b1f-4824-b949-1523c2c92e5a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Custom User Admin Login

2013-12-21 Thread vinayak11118
So I solved the problem. Even I don't know how. :/
I used 
thisas
 a template and added my own models and requirements on top of it. 

Slightly off topic but I needed this setup because I want to grant users 
object level permissions. 
django-guardianlooked like a match 
but I'm having trouble making it work with custom user 
models. The developer of guardian has a 
warningfor
 custom users. 

Since the template I used to create my custom user had 
admin.site.unregister(Group) included in the admin.py file, guardian throws:

'MyUser' has no attribute 'groups' error. Allowing groups to register shows the 
same error. Do we need to implement custom groups when we use custom users? As 
of now, I don't need the group functionality - so it'd be great if there is a 
work around.

Here is my architecture:

|--- *customuser*
   |--- *customauth*
   |--- management
   |--- migrations
   |--- admin.py// same as used in the initial post, slight 
additions
   |--- models.py  // same as used in the initial post, slight additions
   |--- views.py
   |--- *customuser*
   |--- setting.py
   |--- urls.py
   |--- *client001*
   |--- admin.py// posted below
   |--- models.py  // posted below
   |--- views.py  


*So, I have a separate app for each client (customer) that registers for my 
app. Each client can have multiple users with each user having permission 
to 'view' a 'stream' or not. The main app stores a list of all users and 
all clients.*


*customauth/models.py*

class Address(models.Model):
> country = models.CharField(_('Country'), max_length=100, blank=True)
> *** ommited ***
> street_line3 = models.CharField(_('Address Line 3'), max_length=100, 
> blank=True)
>
> class Client(models.Model):
> cID = models.IntegerField(primary_key=True, blank=False)
> *** ommited ***
> address = models.ForeignKey(Address, related_name='located_at')
>
> class MyUserManager(BaseUserManager):
> def create_user(self, email, username, password=None):
> *** ommited ***
> user.set_password(password)
> user.save(using=self._db)
> return user
>
> def create_superuser(self, email, username, password):
> *** ommited ***
> user.is_admin = True
> user.is_superuser = True
> user.save(using=self._db)
> return user
>
>
> class MyUser(AbstractBaseUser):
> email = models.EmailField(
> verbose_name='email address',
> max_length=255,
> unique=True,
> db_index=True,
> )
> username = models.CharField(max_length=254, unique=True, blank=False, 
> db_index=True)
> *** ommited ***
> corp = models.ForeignKey(Client, related_name="employee_of", null=True)
>

> objects = MyUserManager()
>
> USERNAME_FIELD = 'username'
> REQUIRED_FIELDS = ['email']
>
>
>
*customauth/admin.py* 

admin.site.register(Address)
admin.site.register(Client)


class UserCreationForm(forms.ModelForm):
password1 = forms.CharField(label='Password', 
widget=forms.PasswordInput)
password2 = forms.CharField(label='Password confirmation', 
widget=forms.PasswordInput)

class Meta:
model = ZenatixUser
fields = ('email', 'username')

def clean_password2(self):
password1 = self.cleaned_data.get("password1")
password2 = self.cleaned_data.get("password2")
if password1 and password2 and password1 != password2:
raise forms.ValidationError("Passwords don't match")
return password2

def save(self, commit=True):
user = super(UserCreationForm, self).save(commit=False)
user.set_password(self.cleaned_data["password1"])
if commit:
user.save()
return user


class UserChangeForm(forms.ModelForm):
password = ReadOnlyPasswordHashField()

class Meta:
model = ZenatixUser
fields = ['username', 'corp', 'first_name', 'last_name', 'email', 
'password', 'date_of_birth', 'is_active',
  'is_admin']

def clean_password(self):
return self.initial["password"]


class MyUserAdmin(UserAdmin):
form = UserChangeForm
add_form = UserCreationForm
list_display = ('username', 'corp', 'email', 'is_admin')
list_filter = ('corp',)
fieldsets = (
(None, {'fields': ('username', 'email', 'corp', 'password')}),
('Personal info', {'fields': ('date_of_birth', 'first_name', 
'last_name')}),
('Permissions', {'fields': ('is_admin', 'is_active')}),
)
add_fieldsets = (
(None, {
'classes': ('wide',),
'fields': ('username', 'email', 'password1', 'password2', 
'corp')}
),
)
search_fields = ('username',)
ordering = ('username',)
filter_horizontal = ()

Re: Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-21 Thread Mark Moss
Hi Frank,

Debug is enabled intentionally since this is a demo machine.

All themes are fine without any problem. You just need to change the 
default theme from Admin side. To demonstrate it, I have now changed to 
Hfree Software theme, which can be seen at -- http://198.154.98.107:8000/

You will find the admin login info on this page -- 
http://gigapros.com/portal/django-cms-hosting

- Mark

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6b4838d-3fbb-42b9-861c-ed7fc846a444%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Custom User Admin Login

2013-12-21 Thread vinayak11118
Also, from initial tests it appears that django-guardian is not setting 
permissions with custom user. I wrote a small manage.py script to test that:

from django.core.management.base import BaseCommand, CommandError
from iiitd.models import *
from guardian.shortcuts import assign_perm, remove_perm

class Command(BaseCommand):
def handle(self, *args, **options):
user = MyUser.objects.filter(username='abc')[0]
stream = Stream.objects.filter(uuid='001')[0]
assign_perm('read_stream', user, stream)
print user.has_perm('read_stream', stream)
remove_perm('read_stream', user, stream)
print user.has_perm('read_stream', stream)

It prints True in both cases.
However, the guardian_userobjectpermission table is updating correctly when 
I add or delete permissions. Confused. o.O

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dc7c1d92-5a1c-4eb7-812f-6a1bcd09ccdf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-21 Thread Dig
Hi Serge,

  May I know the capacity of your system with telnet/xmlrpc?

I'm intresting in this topic, and the next project could have a push
scenario.

Thanks.

Regards,
Dig
On Dec 21, 2013 1:01 AM, "Sergiy Khohlov"  wrote:

> telnet and xmlrpc is a good choice.  I'm working on the similar project
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Fri, Dec 20, 2013 at 6:58 PM, Mario Osorio 
> wrote:
> > My app will have to communicate different customers (Linux devices,
> Windoze
> > devices, iOS devices and Android devices at least).
> >
> > Overall, any of these customer devices will start one of many processes
> and
> > some of the other devices are required to respond by letting their users
> > know about the just initialized event. The original event might in turn
> > start related events with more or less the same behavior.
> >
> > I will be using email and SMS as 'secondary weapons', but I need some
> sort
> > of real time communications protocol as primary so whatever devices that
> are
> > connected and need, will be notified immediately. (I'm not sure I'm
> making
> > much sense at this point)
> >
> > What communications protocol can I use so that it:
> >
> > offers real time response
> > is as simple as possible
> > works in as many different customers as possible
> >
> > Thanks a lot in advanced!
> >
> > --
> > 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 post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/17ffdba6-041f-49b8-b688-aa5cdb4a7130%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADTRxJP7Dfj0mt3cRvrJvy08e6hYBjSfa7cKkzEQ10TVcd%3DRrQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAObE2pHEkqa4%2BgAEpatuRYBgBMB2rcg7HGeWjOpP9SoE%2BOiM%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-21 Thread Dig
Hi Bill,

  Is there any django project support websocket? Thanks.

Regards,
Dig
On Dec 21, 2013 1:50 AM, "Bill Freeman"  wrote:

> WebSockets runs over standard HTTP or HTTPS connections, getting past
> firewalls and other restrictions (e.g.; the hotel WiFi will let you web
> browse, but not use other ports).  Since WebSockets is standard HTML5,
> libraries for it will become more and more common.  There are also older
> "push" technologies (COMET, long poll, etc.).
>
> You can also ad hoc something on these ports.
>
>
> On Fri, Dec 20, 2013 at 12:10 PM, Mario R. Osorio wrote:
>
>> Thanks a lot Serge!
>>
>>
>> Dtb/Gby
>> ===
>> Mario R. Osorio
>>
>> "If I had asked people what they wanted, they would have said faster
>> horses."
>>  -- Henry Ford
>>
>> http://www.google.com/profiles/nimbiotics
>>
>>
>> On Fri, Dec 20, 2013 at 12:01 PM, Sergiy Khohlov wrote:
>>
>>> telnet and xmlrpc is a good choice.  I'm working on the similar project
>>> Many thanks,
>>>
>>> Serge
>>>
>>>
>>> +380 636150445
>>> skype: skhohlov
>>>
>>>
>>> On Fri, Dec 20, 2013 at 6:58 PM, Mario Osorio 
>>> wrote:
>>> > My app will have to communicate different customers (Linux devices,
>>> Windoze
>>> > devices, iOS devices and Android devices at least).
>>> >
>>> > Overall, any of these customer devices will start one of many
>>> processes and
>>> > some of the other devices are required to respond by letting their
>>> users
>>> > know about the just initialized event. The original event might in turn
>>> > start related events with more or less the same behavior.
>>> >
>>> > I will be using email and SMS as 'secondary weapons', but I need some
>>> sort
>>> > of real time communications protocol as primary so whatever devices
>>> that are
>>> > connected and need, will be notified immediately. (I'm not sure I'm
>>> making
>>> > much sense at this point)
>>> >
>>> > What communications protocol can I use so that it:
>>> >
>>> > offers real time response
>>> > is as simple as possible
>>> > works in as many different customers as possible
>>> >
>>> > Thanks a lot in advanced!
>>> >
>>> > --
>>> > 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 post to this group, send email to django-users@googlegroups.com.
>>> > Visit this group at http://groups.google.com/group/django-users.
>>> > To view this discussion on the web visit
>>> >
>>> https://groups.google.com/d/msgid/django-users/17ffdba6-041f-49b8-b688-aa5cdb4a7130%40googlegroups.com
>>> .
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/vZQ3C4DS73g/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com.
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADTRxJP7Dfj0mt3cRvrJvy08e6hYBjSfa7cKkzEQ10TVcd%3DRrQ%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAO2PNV6N-gJ%3DW-PxqnrWj8D6JMqJPnLgshUV3_EdVn0SSA09bQ%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAB%2BAj0vuDf7iB387j8xSp1BY4R1epgjEpNkhPE9ghif0RuDXWA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 post to this group, send email to dja

Re: Which Real Time Communications Protocol

2013-12-21 Thread Liam Thompson
you could try http://json-rpc.org/

On Friday, 20 December 2013 18:58:39 UTC+2, Mario Osorio wrote:
>
> My app will have to communicate different customers (Linux devices, 
> Windoze devices, iOS devices and Android devices at least).
>
> Overall, any of these customer devices will start one of many processes 
> and some of the other devices are required to respond by letting their 
> users know about the just initialized event. The original event might in 
> turn start related events with more or less the same behavior.
>
> I will be using email and SMS as 'secondary weapons', but I need some sort 
> of real time communications protocol as primary so whatever devices that 
> are connected and need, will be notified immediately. (I'm not sure I'm 
> making much sense at this point)
>
> What communications protocol can I use so that it:
>
>- offers real time response
>- is as simple as possible
>- works in as many different customers as possible
>
> Thanks a lot in advanced!
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ae5d4dd1-2134-4522-bf1f-f6094bc05ebe%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: ViewDoesNotExist at /admin/

2013-12-21 Thread Gabriele Stoia
Hi Russel I had the same problem.
Here the traceback:

ViewDoesNotExist at /admin/ 

Could not import django.views.generic.list_detail.object_list. Parent module 
django.views.generic.list_detail does not exist.

 Request Method: GET  Request URL: http://www.gabryandjenny.com/admin/  Django 
Version: 1.5.4  Exception Type: ViewDoesNotExist  Exception Value: 

Could not import django.views.generic.list_detail.object_list. Parent module 
django.views.generic.list_detail does not exist.

 Exception Location: 
/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py 
in get_callable, line 104  Python Executable: 
/usr/languages/python/2.6/bin/python  Python Version: 2.6.6  Python Path: 

['/home/alessandrocambogia',
 '/home/alessandrocambogia/gabryandjenny',
 '/home/alessandrocambogia/gabryandjenny/public',
 '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
 '/home/alessandrocambogia/gabryandjenny/public',
 '/usr/local/alwaysdata/python/django/1.5.4',
 '/usr/languages/python/2.6/lib/python26.zip',
 '/usr/languages/python/2.6/lib/python2.6',
 '/usr/languages/python/2.6/lib/python2.6/plat-linux2',
 '/usr/languages/python/2.6/lib/python2.6/lib-tk',
 '/usr/languages/python/2.6/lib/python2.6/lib-old',
 '/usr/languages/python/2.6/lib/python2.6/lib-dynload',
 '/usr/languages/python/2.6/lib/python2.6/site-packages',
 '/usr/local/lib/python2.6/site-packages',
 '/usr/local/lib/python2.6/site-packages/PIL',
 '/usr/lib/python2.6/site-packages',
 '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/',
 '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/']

 Server time: Sat, 21 Dec 2013 06:15:16 -0600
Environment:


Request Method: GET
Request URL: http://www.gabryandjenny.com/admin/

Django Version: 1.5.4
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.sitemaps',
 'modeltranslation',
 'gabryandjennyApp',
 'south',
 'mptt',
 'feincms',
 'tinymce')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py" in 
get_response
  115. response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
in wrapper
  219. return self.admin_view(view, cacheable)(*args, 
**kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" 
in _wrapped_view
  91. response = view_func(request, *args, **kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/views/decorators/cache.py" 
in _wrapped_view_func
  89. response = view_func(request, *args, **kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
in inner
  198.current_app=self.name):
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
reverse
  467. app_list = resolver.app_dict[ns]
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
app_dict
  311. self._populate()
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
_populate
  274. for name in pattern.reverse_dict:
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
reverse_dict
  297. self._populate()
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
_populate
  286. lookups.appendlist(pattern.callback, (bits, 
p_pattern, pattern.default_args))
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
callback
  230. self._callback = get_callable(self._callback_str)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/functional.py" 
in wrapper
  31. result = func(*args)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
get_callable
  104. (lookup_view, mod_name))

Exception Type: ViewDoesNotExist at /admin/
Exception Value: Could not import

Re: ViewDoesNotExist at /admin/

2013-12-21 Thread Gabriele Stoia
Hi Russel

I have the same problem but I cannot figure out how to fix it !!! In local 
the app was perfect... in deploy I had this message :

ViewDoesNotExist at /admin/ 

Could not import django.views.generic.list_detail.object_list. Parent module 
django.views.generic.list_detail does not exist.

 Request Method: GET  Request URL: http://www.gabryandjenny.com/admin/  Django 
Version: 1.5.4  Exception Type: ViewDoesNotExist  Exception Value: 

Could not import django.views.generic.list_detail.object_list. Parent module 
django.views.generic.list_detail does not exist.

 Exception Location: 
/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py 
in get_callable, line 104  Python Executable: 
/usr/languages/python/2.6/bin/python  Python Version: 2.6.6  Python Path: 

['/home/alessandrocambogia',
 '/home/alessandrocambogia/gabryandjenny',
 '/home/alessandrocambogia/gabryandjenny/public',
 '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
 '/home/alessandrocambogia/gabryandjenny/public',
 '/usr/local/alwaysdata/python/django/1.5.4',
 '/usr/languages/python/2.6/lib/python26.zip',
 '/usr/languages/python/2.6/lib/python2.6',
 '/usr/languages/python/2.6/lib/python2.6/plat-linux2',
 '/usr/languages/python/2.6/lib/python2.6/lib-tk',
 '/usr/languages/python/2.6/lib/python2.6/lib-old',
 '/usr/languages/python/2.6/lib/python2.6/lib-dynload',
 '/usr/languages/python/2.6/lib/python2.6/site-packages',
 '/usr/local/lib/python2.6/site-packages',
 '/usr/local/lib/python2.6/site-packages/PIL',
 '/usr/lib/python2.6/site-packages',
 '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/',
 '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/']

 Server time: Sat, 21 Dec 2013 06:15:16 -0600
Here the traceback

Environment:


Request Method: GET
Request URL: http://www.gabryandjenny.com/admin/

Django Version: 1.5.4
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.sitemaps',
 'modeltranslation',
 'gabryandjennyApp',
 'south',
 'mptt',
 'feincms',
 'tinymce')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py" in 
get_response
  115. response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
in wrapper
  219. return self.admin_view(view, cacheable)(*args, 
**kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" 
in _wrapped_view
  91. response = view_func(request, *args, **kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/views/decorators/cache.py" 
in _wrapped_view_func
  89. response = view_func(request, *args, **kwargs)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
in inner
  198.current_app=self.name):
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
reverse
  467. app_list = resolver.app_dict[ns]
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
app_dict
  311. self._populate()
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
_populate
  274. for name in pattern.reverse_dict:
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
reverse_dict
  297. self._populate()
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
_populate
  286. lookups.appendlist(pattern.callback, (bits, 
p_pattern, pattern.default_args))
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
callback
  230. self._callback = get_callable(self._callback_str)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/functional.py" 
in wrapper
  31. result = func(*args)
File 
"/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in 
get_callable
  104. 

How to deploy a django project in the web?

2013-12-21 Thread Pablo Diaz
I've finished my django project but I'm only running it locally. I want to 
put it on a website

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9403bc53-f50c-471e-93c9-9ff099c07eaa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-21 Thread Prashanth
Id pick Json over xml too as it's easier to manipulate and debug Json
serializable python objects. You can also write your own encoders/decoders,
might help: http://pymotw.com/2/json/
On Dec 21, 2013 8:01 AM, "Liam Thompson"  wrote:

> you could try http://json-rpc.org/
>
> On Friday, 20 December 2013 18:58:39 UTC+2, Mario Osorio wrote:
>>
>> My app will have to communicate different customers (Linux devices,
>> Windoze devices, iOS devices and Android devices at least).
>>
>> Overall, any of these customer devices will start one of many processes
>> and some of the other devices are required to respond by letting their
>> users know about the just initialized event. The original event might in
>> turn start related events with more or less the same behavior.
>>
>> I will be using email and SMS as 'secondary weapons', but I need some
>> sort of real time communications protocol as primary so whatever devices
>> that are connected and need, will be notified immediately. (I'm not sure
>> I'm making much sense at this point)
>>
>> What communications protocol can I use so that it:
>>
>>- offers real time response
>>- is as simple as possible
>>- works in as many different customers as possible
>>
>> Thanks a lot in advanced!
>>
>  --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ae5d4dd1-2134-4522-bf1f-f6094bc05ebe%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFrSFCBMCJ%3DkffNep345NP8-DEM0Xi73yfP-c7tXQWtT-rm4%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Django Custom Widget throwing error

2013-12-21 Thread Mrinmoy Das
I have this form and custom widget


class BidDateWidget(widgets.DateInput):
"""
Renders a Twitter Bootstrap Date Input.
"""
class Media:
css = ("{{ STATIC_URL }}stylesheet/datetimepicker.css")
js = ("{{ STATIC_URL }}js/bootstrap-datetimepicker.js")

def render(self, name, value, attrs=None):
if value is None: value = ''
final_attrs = self.build_attrs(attrs, type="text", name=name)
if final_attrs.get('class'):
final_attrs['class'] = final_attrs['class'] + ' input-small'
if final_attrs.get('disabled'):
datepicker_css_class = 'input-append'
else:
datepicker_css_class = 'input-append date'
# only add value attribute if value is non-empty
final_attrs['value'] = value

html = '''

Bid Ending Date







'''
return mark_safe(html.format(flatatt(final_attrs),
datepicker_css_class))

class BidTimeWidget(widgets.TimeInput):
"""
Renders a Twitter Bootstrap Date Input.
"""
class Media:
css = ("{{ STATIC_URL }}stylesheet/bootstrap-timepicker.min.css")
js = ("{{ STATIC_URL }}js/bootstrap-timepicker.min.js")

def render(self, name, value, attrs=None):
final_attrs = self.build_attrs(attrs, type="text", name=name)
final_attrs['class'] = "input-small time"
final_attrs['id'] = "datetime2"
final_attrs['type'] = "text"
if value is None:
final_attrs['value'] = ''
else:
final_attrs['value'] =  datetime.datetime.strptime(value,
"%H:%M %p").time()

timepicker_css_class = 'input-append'

html = '''

Bid Ending Time







'''
return mark_safe(html.format(flatatt(final_attrs),
timepicker_css_class))


class BidSplitDateTime(forms.SplitDateTimeWidget):
"""
A SplitDateTime Widget that has some admin-specific styling.
"""
def __init__(self, attrs=None):
widgets = [BidDateWidget,BidTimeWidget]
# Note that we're calling MultiWidget, not SplitDateTimeWidget,
because
# we want to define widgets.
forms.MultiWidget.__init__(self, widgets, attrs)

def format_output(self, rendered_widgets):
return mark_safe(u'%s %s' % \
(rendered_widgets[0], rendered_widgets[1]))


class BidCreateForm(forms.ModelForm):
required_css_class = 'required'
def __init__(self, *args, **kwargs):
user = kwargs.pop('vehicles_available')
super(BidCreateForm, self).__init__(*args, **kwargs)
self.fields['vehicles_available'].queryset =
CarrierVehicle.objects.filter(carrier__user=user)
self.fields['vehicles_available'].help_text = None

class Meta:
model = Bid
exclude = ('created_on', 'created_by', 'created_from',
   'last_modified_on', 'last_modified_by',
'last_modified_from',
   'job', 'accepted', 'spam', )
fields = ('one_liner', 'quote_price', 'message',
'vehicles_available','bid_ending_in' )
widgets = {
'one_liner': forms.TextInput(attrs={'class': 'span8'}),
'quote_price': forms.TextInput(attrs={'class': 'span10'}),
'message': forms.Textarea(attrs={'class': 'span10', 'rows':
'6'}),
'vehicles_available' : forms.CheckboxSelectMultiple(),
'bid_ending_in' : BidSplitDateTime()
}



Thing is whenever I am posting this form, it goes to form-invalid, and
returns this error


bid_ending_inEnter a
valid date/time.



Any Help?

Mrinmoy Das
http://goromlagche.in/

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWA-MOMkHHOeaCBJJd_n_wnBp3zqCth2SRa0duUmDEmtGP_tw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-21 Thread Mark Moss
You need to install Django framework on a machine that's connected to 
internet and then deploy your app into it.

-
- Mark
*Need Django Framework? You'll Instant Django Hosting 
*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4d90ad19-aefa-494f-85ba-26836e28b968%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-21 Thread Mark Moss
You need to install Django framework on a machine that's connected to 
internet and then deploy your app into it.

-
- Mark
*Need Django Framework? You'll Love Instant Django Hosting 
*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7618e3aa-fa67-47dd-bf49-cb9a0fea40dc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-21 Thread Mario Osorio
Thanks to everyone contributing to my question ... I will be evaluating all 
options soon!

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5e9c7cf0-3bfb-4612-8886-2d6cb2f9c3f3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Custom User Admin Login

2013-12-21 Thread Russell Keith-Magee
On Sat, Dec 21, 2013 at 7:29 PM,  wrote:

> So I solved the problem. Even I don't know how. :/
> I used 
> thisas
>  a template and added my own models and requirements on top of it.
>
> Slightly off topic but I needed this setup because I want to grant users
> object level permissions. 
> django-guardianlooked like a 
> match but I'm having trouble making it work with custom user
> models. The developer of guardian has a 
> warningfor
>  custom users.
>
> Since the template I used to create my custom user had
> admin.site.unregister(Group) included in the admin.py file, guardian throws:
>
> 'MyUser' has no attribute 'groups' error. Allowing groups to register shows 
> the same error. Do we need to implement custom groups when we use custom 
> users? As of now, I don't need the group functionality - so it'd be great if 
> there is a work around.
>
> As indicated in the custom user docs -- no, you don't *have* to implement
groups. However, if you're using any functionality that depends on groups,
you will need to at least provide a null implementation. If you're using an
app that integrates with object-level permissions, then it sounds like
you're going to need to provide at least *some* interface.

Beyond that, I can't be much help - I don't know anything about
django-guardian, and can't comment on whether it's been upgraded to support
custom Users (there are plenty of apps out there that haven't been). It
sounds like you need to take this problem up with the maintainers of
django-guardian.

Yours,
Russ Magee %-)

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq849xVZi8DwSnge0wj9hnkLSA88TYwmOQ6TU76NF3T1NRXA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: ViewDoesNotExist at /admin/

2013-12-21 Thread Russell Keith-Magee
Hi Gabriele,

The answer is the same as before. You have some code that is referencing
django.views.generic.list_detail.object_list. As of Django 1.5, this view
no longer exists. You need to find out what code is referencing this view,
and update it.

The problem code might be your own code, or it might be a third party app.
You'll need to check all the apps in INSTALLED_APPS to see if there are any
reported problems with Django 1.5 compatibility.

Yours,
Russ Magee %-)


On Sat, Dec 21, 2013 at 8:28 PM, Gabriele Stoia wrote:

> Hi Russel
>
> I have the same problem but I cannot figure out how to fix it !!! In local
> the app was perfect... in deploy I had this message :
>
>

> ViewDoesNotExist at /admin/
>
> Could not import django.views.generic.list_detail.object_list. Parent module 
> django.views.generic.list_detail does not exist.
>
>  Request Method: GET  Request URL: http://www.gabryandjenny.com/admin/  Django
> Version: 1.5.4  Exception Type: ViewDoesNotExist  Exception Value:
>
> Could not import django.views.generic.list_detail.object_list. Parent module 
> django.views.generic.list_detail does not exist.
>
>  Exception Location: 
> /usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py
> in get_callable, line 104  Python Executable:
> /usr/languages/python/2.6/bin/python  Python Version: 2.6.6  Python Path:
>
> ['/home/alessandrocambogia',
>  '/home/alessandrocambogia/gabryandjenny',
>  '/home/alessandrocambogia/gabryandjenny/public',
>  '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
>  '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
>  '/home/alessandrocambogia/gabryandjenny/public',
>  '/usr/local/alwaysdata/python/django/1.5.4',
>  '/usr/languages/python/2.6/lib/python26.zip',
>  '/usr/languages/python/2.6/lib/python2.6',
>  '/usr/languages/python/2.6/lib/python2.6/plat-linux2',
>  '/usr/languages/python/2.6/lib/python2.6/lib-tk',
>  '/usr/languages/python/2.6/lib/python2.6/lib-old',
>  '/usr/languages/python/2.6/lib/python2.6/lib-dynload',
>  '/usr/languages/python/2.6/lib/python2.6/site-packages',
>  '/usr/local/lib/python2.6/site-packages',
>  '/usr/local/lib/python2.6/site-packages/PIL',
>  '/usr/lib/python2.6/site-packages',
>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/',
>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/']
>
>  Server time: Sat, 21 Dec 2013 06:15:16 -0600
> Here the traceback
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://www.gabryandjenny.com/admin/
>
> Django Version: 1.5.4
> Python Version: 2.6.6
> Installed Applications:
> ('django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'django.contrib.admin',
>  'django.contrib.sitemaps',
>  'modeltranslation',
>  'gabryandjennyApp',
>  'south',
>  'mptt',
>  'feincms',
>  'tinymce')
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware')
>
>
> Traceback:
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py" in
> get_response
>   115. response = callback(request,
> *callback_args, **callback_kwargs)
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py"
> in wrapper
>   219. return self.admin_view(view, cacheable)(*args,
> **kwargs)
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in
> _wrapped_view
>   91. response = view_func(request, *args, **kwargs)
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/views/decorators/cache.py"
> in _wrapped_view_func
>   89. response = view_func(request, *args, **kwargs)
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py"
> in inner
>   198.current_app=self.name):
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in
> reverse
>   467. app_list = resolver.app_dict[ns]
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in
> app_dict
>   311. self._populate()
> File
> "/usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py" in
> _populate
>   274. for name in pattern.revers

Re: ViewDoesNotExist at /admin/

2013-12-21 Thread Gabriele Stoia
Hi Russel,

thanks for your answer. I found the problem. Is related to Photologue. 
Do you have any information about it ?

Thank you very much

Gabri

Il giorno domenica 22 dicembre 2013 09:17:51 UTC+7, Russell Keith-Magee ha 
scritto:
>
> Hi Gabriele,
>
> The answer is the same as before. You have some code that is referencing 
> django.views.generic.list_detail.object_list. As of Django 1.5, this view 
> no longer exists. You need to find out what code is referencing this view, 
> and update it.
>
> The problem code might be your own code, or it might be a third party app. 
> You'll need to check all the apps in INSTALLED_APPS to see if there are any 
> reported problems with Django 1.5 compatibility.
>
> Yours,
> Russ Magee %-)
>
>
> On Sat, Dec 21, 2013 at 8:28 PM, Gabriele Stoia 
> 
> > wrote:
>
>> Hi Russel
>>
>> I have the same problem but I cannot figure out how to fix it !!! In 
>> local the app was perfect... in deploy I had this message :
>>
>>  
>
>> ViewDoesNotExist at /admin/
>>
>> Could not import django.views.generic.list_detail.object_list. Parent module 
>> django.views.generic.list_detail does not exist.
>>
>>  Request Method: GET  Request URL: http://www.gabryandjenny.com/admin/  
>> Django 
>> Version: 1.5.4  Exception Type: ViewDoesNotExist  Exception Value: 
>>
>> Could not import django.views.generic.list_detail.object_list. Parent module 
>> django.views.generic.list_detail does not exist.
>>
>>  Exception Location: 
>> /usr/local/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py 
>> in get_callable, line 104  Python Executable: 
>> /usr/languages/python/2.6/bin/python  Python Version: 2.6.6  Python Path: 
>>
>> ['/home/alessandrocambogia',
>>  '/home/alessandrocambogia/gabryandjenny',
>>  '/home/alessandrocambogia/gabryandjenny/public',
>>  '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
>>  '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
>>  '/home/alessandrocambogia/gabryandjenny/public',
>>  '/usr/local/alwaysdata/python/django/1.5.4',
>>  '/usr/languages/python/2.6/lib/python26.zip',
>>  '/usr/languages/python/2.6/lib/python2.6',
>>  '/usr/languages/python/2.6/lib/python2.6/plat-linux2',
>>  '/usr/languages/python/2.6/lib/python2.6/lib-tk',
>>  '/usr/languages/python/2.6/lib/python2.6/lib-old',
>>  '/usr/languages/python/2.6/lib/python2.6/lib-dynload',
>>  '/usr/languages/python/2.6/lib/python2.6/site-packages',
>>  '/usr/local/lib/python2.6/site-packages',
>>  '/usr/local/lib/python2.6/site-packages/PIL',
>>  '/usr/lib/python2.6/site-packages',
>>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/',
>>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/']
>>
>>  Server time: Sat, 21 Dec 2013 06:15:16 -0600
>> Here the traceback
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://www.gabryandjenny.com/admin/
>>
>> Django Version: 1.5.4
>> Python Version: 2.6.6
>> Installed Applications:
>> ('django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.sites',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'django.contrib.admin',
>>  'django.contrib.sitemaps',
>>  'modeltranslation',
>>  'gabryandjennyApp',
>>  'south',
>>  'mptt',
>>  'feincms',
>>  'tinymce')
>> Installed Middleware:
>> ('django.middleware.common.CommonMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware')
>>
>>
>> Traceback:
>> File 
>> "/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py" in 
>> get_response
>>   115. response = callback(request, 
>> *callback_args, **callback_kwargs)
>> File 
>> "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
>> in wrapper
>>   219. return self.admin_view(view, cacheable)(*args, 
>> **kwargs)
>> File 
>> "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in 
>> _wrapped_view
>>   91. response = view_func(request, *args, **kwargs)
>> File 
>> "/usr/local/alwaysdata/python/django/1.5.4/django/views/decorators/cache.py" 
>> in _wrapped_view_func
>>   89. response = view_func(request, *args, **kwargs)
>> File 
>> "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" 
>> in inner
>>   198.current_app=self.name):
>> File 
>> "/usr/local/al

Re: ViewDoesNotExist at /admin/

2013-12-21 Thread Russell Keith-Magee
Hi Gabriele,

Unfortunately, no. I'm aware of the name, but  I haven't used
Photologue myself, so I don't really know anything about it. You'll need to
check the project pages and support lists for Photologue itself.

Yours,
Russ Magee %-)

On Sunday, December 22, 2013, Gabriele Stoia wrote:

> Hi Russel,
>
> thanks for your answer. I found the problem. Is related to Photologue.
> Do you have any information about it ?
>
> Thank you very much
>
> Gabri
>
> Il giorno domenica 22 dicembre 2013 09:17:51 UTC+7, Russell Keith-Magee ha
> scritto:
>>
>> Hi Gabriele,
>>
>> The answer is the same as before. You have some code that is referencing
>> django.views.generic.list_detail.object_list. As of Django 1.5, this
>> view no longer exists. You need to find out what code is referencing this
>> view, and update it.
>>
>> The problem code might be your own code, or it might be a third party
>> app. You'll need to check all the apps in INSTALLED_APPS to see if there
>> are any reported problems with Django 1.5 compatibility.
>>
>> Yours,
>> Russ Magee %-)
>>
>>
>> On Sat, Dec 21, 2013 at 8:28 PM, Gabriele Stoia wrote:
>>
>>> Hi Russel
>>>
>>> I have the same problem but I cannot figure out how to fix it !!! In
>>> local the app was perfect... in deploy I had this message :
>>>
>>>
>>
>>> ViewDoesNotExist at /admin/
>>>
>>> Could not import django.views.generic.list_detail.object_list. Parent 
>>> module django.views.generic.list_detail does not exist.
>>>
>>>  Request Method: GET  Request URL: http://www.gabryandjenny.com/admin/  
>>> Django
>>> Version: 1.5.4  Exception Type: ViewDoesNotExist  Exception Value:
>>>
>>> Could not import django.views.generic.list_detail.object_list. Parent 
>>> module django.views.generic.list_detail does not exist.
>>>
>>>  Exception Location: /usr/local/alwaysdata/python/
>>> django/1.5.4/django/core/urlresolvers.py in get_callable, line 104  Python
>>> Executable: /usr/languages/python/2.6/bin/python  Python Version: 2.6.6  
>>> Python
>>> Path:
>>>
>>> ['/home/alessandrocambogia',
>>>  '/home/alessandrocambogia/gabryandjenny',
>>>  '/home/alessandrocambogia/gabryandjenny/public',
>>>  '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
>>>  '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
>>>  '/home/alessandrocambogia/gabryandjenny/public',
>>>  '/usr/local/alwaysdata/python/django/1.5.4',
>>>  '/usr/languages/python/2.6/lib/python26.zip',
>>>  '/usr/languages/python/2.6/lib/python2.6',
>>>  '/usr/languages/python/2.6/lib/python2.6/plat-linux2',
>>>  '/usr/languages/python/2.6/lib/python2.6/lib-tk',
>>>  '/usr/languages/python/2.6/lib/python2.6/lib-old',
>>>  '/usr/languages/python/2.6/lib/python2.6/lib-dynload',
>>>  '/usr/languages/python/2.6/lib/python2.6/site-packages',
>>>  '/usr/local/lib/python2.6/site-packages',
>>>  '/usr/local/lib/python2.6/site-packages/PIL',
>>>  '/usr/lib/python2.6/site-packages',
>>>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/',
>>>  '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/']
>>>
>>>  Server time: Sat, 21 Dec 2013 06:15:16 -0600
>>> Here the traceback
>>>
>>> Environment:
>>>
>>>
>>> Request Method: GET
>>> Request URL: http://www.gabryandjenny.com/admin/
>>>
>>> Django Version: 1.5.4
>>> Python Version: 2.6.6
>>> Installed Applications:
>>> ('django.contrib.auth',
>>>  'django.contrib.contenttypes',
>>>  'django.contrib.sessions',
>>>  'django.contrib.sites',
>>>  'django.contrib.messages',
>>>  'django.contrib.staticfiles',
>>>  'django.contrib.admin',
>>>  'django.contrib.sitemaps',
>>>  'modeltranslation',
>>>  'gabryandjennyApp',
>>>  'south',
>>>  'mptt',
>>>  'feincms',
>>>  'tinymce')
>>> Installed Middleware:
>>> ('django.middleware.common.CommonMiddleware',
>>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>>  'django.middleware.csrf.CsrfViewMiddleware',
>>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>>  'django.contrib.messages.middleware.MessageMiddleware')
>>>
>>>
>>> Traceback:
>>> File 
>>> "/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py"
>>> in get_response
>>>   115. response = callback(request,
>>> *callback_args, **callback_kwargs)
>>> File 
>>> "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py"
>>> in wrapper
>>>   219. return self.admin_view(view, cacheable)(*args,
>>> **kwargs)
>>> File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/<
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Group