Survey : Theme for Django admin interface

2013-03-09 Thread Venkatraman S
Hi, Was wondering if there are *paid* takers for themes for the django-admin interface. I know there are a few that exist already but am not quite happy with them. I can definitely spend a few days/weeks and develop some nice looking ones, but wanted to check if people are really looking for some

Re: django-registration vs Django 1.5

2013-03-09 Thread James Bennett
I plan to work on it at the PyCon sprints. Rejected some pull requests lately though due to people abusing various features of bitbucket to spam rather than to help, and my policy is not to reward that kind of behavior. -- You received this message because you are subscribed to the Google Groups

Re: django-registration vs Django 1.5

2013-03-09 Thread Ernest Ezis
I setup a brand new 1.5 project today. I had everything working fine. Was using django's built in admin to test/refine and add data to my models. Then I installed django-registration using the repo below, and grabbed the templates. The good news is that, yes, the registration stuff works and

Re: Upgrade to 1.5 issues

2013-03-09 Thread jayhalleaux
thanks... i totally blanked as to where i was making the mistake. On Saturday, March 9, 2013 3:39:06 AM UTC-5, Atul Bhouraskar wrote: > > > I'll try to answer your second question: > > On Saturday, 9 March 2013 16:07:46 UTC+11, jayhalleaux wrote: >> >> >> > > >> 2. Accessing user profile data

Problem with testing Django sources

2013-03-09 Thread VVilku
Hello, I have problem with testing Django sources from Git. When I use: * PYTHONPATH=.. /python runtests.py --settings=test_sqlite*(in Windows with Git Shell). I receive these errors: == FAIL: test_naturalday_uses_localtime (

Problem with testing Django files (sources).

2013-03-09 Thread Paweł Więc
Hello, I have little problem with testing Django sources in Windows. I have fresh sources from "git clone". I used Git shell (sh.exe) from "Git Bash". When: *PYTHONPATH=.. /python.exe runtests.py --settings=test_sqlite* I receive these errors: ===

Re: urls.py not loading changes

2013-03-09 Thread Asier Hernández Juanes
I have launched a "/etc/init.d/uwsgi restart" but the application is still not loading the changes in urls.py file. I think I have to kill the process because after restarting the uwsgi process the PID is still the same: *root@miami ~ # ps -fea|grep uwsgi uwsgi11916 1 0 Jan22 ?

Re: TestCase - send POST with m2m data?

2013-03-09 Thread galgal
Oh, how could I miss that. Now I see it. Thanks :) To submit multiple values for a given key – for example, to specify the > selections for a – provide the values as a list or > tuple for the required key. For example, this value of data would submit > three selected values for the field named

Re: urls.py not loading changes

2013-03-09 Thread Asier Hernández Juanes
The problem is that I am administrating this server where the Django application was already installed and deployed so I don't have this information. However I have execute "ps -e" to view all the processes running on my server and I got this: PID TTY TIME CMD 1 ?00:00:2

Re: urls.py not loading changes

2013-03-09 Thread Javier Guerra Giraldez
On Fri, Mar 8, 2013 at 6:14 PM, Asier Hernández Juanes wrote: > When I type "locate *.fcgi" I get no results at all that searches for files. no relation to processes. to help you, first we need to know a bit about your deployment architecture, specially which WSGI server you're using behind ng

Re: how to automatically create userprofile when user is created from admin

2013-03-09 Thread Atul Bhouraskar
On Saturday, 9 March 2013 04:56:52 UTC+11, frocco wrote: > > Hello, > > right now, if I create a user in admin, I have to also create their > userprofile that I have defined in settings. > > Is there a way to automate this? > > Thanks > > > Hi, If by automate you mean admin should allow you to

Re: Upgrade to 1.5 issues

2013-03-09 Thread Atul Bhouraskar
I'll try to answer your second question: On Saturday, 9 March 2013 16:07:46 UTC+11, jayhalleaux wrote: > > > > 2. Accessing user profile data from a session. > > Example: > > models.py > > from django.contrib.auth.models import User > > class UserProfile(models.Model): > > user = mo

Re: Urls on the fly

2013-03-09 Thread Atul Bhouraskar
Hi Serge, The following works and is almost the same as your code: url_list = [] for i in range(0, 4): url_list.append(url(r'^%d$' % i, 'view%d' % i)) urlpatterns = patterns('', *url_list) As patterns is a function that expects multiple arguments each of which (other than the first) is a

Re: urls.py not loading changes

2013-03-09 Thread Asier Hernández Juanes
I understand but I cannot locate the FastCGI process to stop it. When I type "locate *.fcgi" I get no results at all so unfortunatelly I don't know how to stop the Django (or fastCGI) process itself. Can anyone help me, please? -- You received this message because you are subscribed to the Goo

Re: Template inheritance

2013-03-09 Thread Nenad Cikic
Many thanks I new it should exist better way. Nenad -- 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 gr

Re: Template inheritance

2013-03-09 Thread Tomas Ehrlich
Hi Nenad, you can wrap your meta-refresh line in another block and then delete it's content in templates which shouldn't be refreshed. # base_site.html {% block extrahead %} {% block extrahead-refresh %} {% endblock %} {% endblock %} # change_form.html -- deletes content of block

Re: Template inheritance

2013-03-09 Thread Nenad Cikic
Thanks, yes, this is what I did. I just wanted to know if there is a better way. In the case I add something more to base_site extrahead I would be in trouble. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Template inheritance

2013-03-09 Thread Shawn Milochik
If the refresh is the only thing in your "extrahead" block, then just don't add block.super to extrahead in your change form, and you can eliminate the "if" statement from it in your base template. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Template inheritance

2013-03-09 Thread Nenad Cikic
Hello, I am using django admin for my project so I am not writing much templates by myself, therefore I am not very skilled with them, so excuse me if I ask dumb question. I have extended base_site.html to add browser refresh in block extrahead. I do not want however to do refresh while I am inse