Access the AdminSite object by its name

2013-10-07 Thread Germán Larraín
Hi.

When using multiple admin sites, it's necessary to give them (except the 
default one) a name to be able to reverse URL names correctly. The default 
admin site's name is 'admin'.
https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf

Is it possible to get the admin site object (instance 
of django.contrib.admin.AdminSite) by it's name?

I have some ideas to do this, but all of them are too ugly and convoluted.

Thanks

-- 
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/65c14f66-b70f-400d-9be6-f5bd3fc313ac%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Reliable and cheap hosting for simple webapp in Django

2013-09-12 Thread Germán Larraín
Also

https://www.nitrous.io

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: error python manage.py syncdb

2013-09-12 Thread Germán Larraín
Never import Django stuff in your settings (except core.exceptions) unless you 
REALLY know what you are doing

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


I cannot enable logging in server console

2013-09-12 Thread Germán Larraín
Perhaps it's a pycharm issue...

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Workflow/tools assistance

2013-09-12 Thread Germán Larraín
Some comments:

* why use sqlalchemy if Django has its own ORM?
* you mentioned parsing SQL entries; watch out!
* if you are starting a new project, I seriously recommend you to use 
PostreSQL, not MySQL/Maria DB

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Installing django dev

2013-09-12 Thread Germán Larraín
If you are using a virtualenv I don't see why you need to use "sudo".

Where did you clone the git repo? Do you have the "regular" permissions in that 
directory?

Also, consider reading the dev version of the docs, not 1.5 (like the link you 
referenced).

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.