Storages API modified_time() and timezones.

2013-10-18 Thread Ian Lewis
Hi, I'm trying to get a handle on the modified_time() method in the Storages API. I couldn't find any hints in the doc as to what the right way to implement the modified_time() method was in regard to timezones. Currently it looks like the default FileSystemStorage backend returns the modified

Re: admin template customization

2013-10-18 Thread Timothy W. Cook
Did you add: TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')] to settings.py ? On Fri, Oct 18, 2013 at 6:47 PM, Gavin Lowry wrote: > I'm following the tutorial at > https://docs.djangoproject.com/en/1.5/intro/tutorial01/ > ...I'm at the stage where I can change the

PythonAnywhere->TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

2013-10-18 Thread Mario Osorio
Trying to deploy my very first app in PythonAnywhere (or at AnywhereAnywhere for that matter) I'm currently getting TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings (full error

PendingDeprecationWarning: django.utils.simplejson is deprecated;

2013-10-18 Thread dundeemt
I have a 1.2.6 project that I am upgrading to 1.5.4, when I run the dev server with: > python -Wall manage.py runserver I am getting the following warning: /home/jlh/Projects/calypso-15x/local/lib/python2.7/site-packages/django/utils/simplejson.py:12: PendingDeprecationWarning:

admin template customization

2013-10-18 Thread Gavin Lowry
I'm following the tutorial at https://docs.djangoproject.com/en/1.5/intro/tutorial01/ ...I'm at the stage where I can change the template of the admin site. I'm instructed to copy base_site.html from the django source directory to a template/admin folder in my site directory. I have done this

Re: MySQL error when trying to run tests with utf8mb4 charset

2013-10-18 Thread fletch
Looks like this comes from custom_user.py in django.contrib.auth.tests: class CustomUser(AbstractBaseUser): email = models.EmailField(verbose_name='email address', max_length=255, unique=True) is_active = models.BooleanField(default=True) is_admin = models.BooleanField(default=False)

Re: How to add a post-login information to an authenticated user?

2013-10-18 Thread Khanh Tran
Even though i have not directly answered my question, i found out that session storage is an alternative solution. On Friday, October 18, 2013 12:17:50 PM UTC-7, Khanh Tran wrote: > > I am using out of the box django 1.5 authentication solution. After > authenticated, i want to add a

How to add a post-login information to an authenticated user?

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. After authenticated, i want to add a 'post_login_info' to the user using user_logged_in signal from django.contrib.auth.signals from django.contrib.auth.signals import user_logged_in from django.dispatch import receiver

Authenticated user loss an attribute that is added under user_logged_in signal.

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. I also user_logged_in signal from django.contrib.auth.signals to add a piece of information to the logged in user to hope i can retrieve it later as follow: from django.contrib.auth.signals import user_logged_in from django.dispatch

Re: Editing forms in django

2013-10-18 Thread Sandeep kaur
On Fri, Oct 18, 2013 at 1:09 PM, amanjot kaur wrote: > What should I need to do in django, if I want to edit the information > filled in django, like we edit our profile in facebook after filling > once? That means editing the already saved data? Assuming you are using

Re: django sample (without admin site)

2013-10-18 Thread Thomas Lockhart
On 10/18/13 10:04 AM, Sanjaya Vitharana wrote: Hi, I am newbie to django looking for a simple sample. I'd suggest picking up a package built on top of Django. Maybe Mezzanine (I've enjoyed working with that). But there are several which will get you going quickly. hth

Data attribute (aka instant variable) added to the current logged-in user through user_logged_in signal cannot be retrieve later.

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. After user is logged in, i use build-in user_logged_in signal from django.contrib.auth.signals to add a piece of information to the logged in user as follow: from django.contrib.auth.signals import user_logged_in from

Re: How to handle values_list?

2013-10-18 Thread Andrew Michael
Thanks to Leonardo, Daniel and Charly this issue is resolved! Each of your comments helped me. I changed my views.py file filter statement: FROM: name = Name.objects.filter(pk=my_**number).values_list('city', flat=True) TO: name = Name.objects.get(pk=number).name And in my template I have the

django sample (without admin site)

2013-10-18 Thread Sanjaya Vitharana
Hi, I am newbie to django looking for a simple sample. What I need: 1.) simple template may be with 2-4 fields/text boxes with "save" button. What it should do: Just save the data in the text boxes to a database when i press the "save" button. 2.) may be another template with button "Show DB"

Re: PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
I restart and problem solved. Thanks everbody. Best. On Friday, October 18, 2013 11:28:45 AM UTC+3, Muhammed TÜFEKYAPAN wrote: > > Hello, > > > I just start to publish my app on web. Everything going well but I face a > new problem, before I never face. Site working but sometimes raise error

BinaryField on Django 1.6b4

2013-10-18 Thread Elton Pereira
I created a new project with a class with two fields, one type CharField and another type BinaryField. When I access the admin, only the field name appears. My class: class Arquivo(models.Model): nome = models.CharField(max_length=255) arquivo = models.BinaryField() def

Re: PostgreSQL OperationalError

2013-10-18 Thread Xavier Ordoquy
If you are using anything other than the devserver, you'll need to reload / restart your service in order for your changes to take effects. Django/webservers differ a couple of things until a request comes. This means that if you changed the settings after a first request you may have a some

Re: PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
Thanks for answer. But if my login and pass didn't match, it always raise error. It just sometimes raise error, sometimes doesn't. 2013/10/18 Xavier Ordoquy > Hello, > > Your DATABASES settings aren't correct. > fe_sendauth is about Postgresql complaining the

Re: PostgreSQL OperationalError

2013-10-18 Thread Xavier Ordoquy
Hello, Your DATABASES settings aren't correct. fe_sendauth is about Postgresql complaining the login/password didn't match. Regards, Xavier, Linovia. Le 18 oct. 2013 à 10:28, Muhammed TÜFEKYAPAN a écrit : > Hello, > > > I just start to publish my app on web.

PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
Hello, I just start to publish my app on web. Everything going well but I face a new problem, before I never face. Site working but sometimes raise error like this; OperationalError at / fe_sendauth: no password supplied Full error looks like this; OperationalError at / fe_sendauth:

Editing forms in django

2013-10-18 Thread amanjot kaur
What should I need to do in django, if I want to edit the information filled in django, like we edit our profile in facebook after filling once? -- Amanjot Kaur Blog: kauramanjot35.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Deployment

2013-10-18 Thread Arun K Reddy
Check mod_wsgi for configuring apache with django. https://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/ Make sure to check all permissions for the files. On Thursday, October 17, 2013 8:12:07 PM UTC+5:30, Zoubeida wrote: > > Hi all, > > i am new in django, and i want to deploy my

Re: How to handle values_list?

2013-10-18 Thread Leonardo Giordani
Andrew, I think that the view is missing something: def enter_name(request): my_number = request.user.number name = Name.objects.filter(pk=my_number).values_list('city', flat=True) *data = {...} * *return render_to_response('template.html', data,

Re: Please suggest me best e-tutorial for Django framework.

2013-10-18 Thread Arun K Reddy
http://trickveda.wordpress.com/2013/09/28/what-are-some-good-django-tutorials-that-use-version-1-5/ Have a look. Hope it helps. On Thursday, October 17, 2013 5:14:36 PM UTC+5:30, ssy wrote: > > Hi every body, > >Good to evening to allI am new to django framework can > any