Re: django template string and int comparison behavior

2013-09-20 Thread J Y
That makes a lot of sense. Thanks for the explanation. I will use the view to convert it to an int. Jack On Tuesday, September 17, 2013 1:00:01 PM UTC-7, ke1g wrote: > > Yes, this is the expected behavior. The GET parameter is a string, being > something that is just parsed out of the query

and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-20 Thread Trung Nguyen
Django Version:1.5.2Exception Type:NoReverseMatchException Value: Reverse for 'gradingstudent' with arguments '()' and keyword arguments '{u'student_id': None, u'school_id': 1}' not found. Exception Location:/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line

FileField Default Setting

2013-09-20 Thread Chris Kavanagh
I just added a FileField to my Model (thumbnail = models.FileField(upload_to=get_upload_file_name), however when I try to use South to migrate the model, I get a message telling me . . . "The field 'Article.thumbnail' does not have a default specified, yet is NOT NULL. Since you are adding

Re: djangojobs.com

2013-09-20 Thread Russell Keith-Magee
The purchase date of the domain is irrelevant. The Django Software Foundation owns the trademark for Django. It's been a registered trademark (in the US) for 6 years; we had a trademark-by-use for several years prior to that. Outside the US, we have a trademark-by-use for the same period. Anyone

Re: Couple of random Error 500 issues

2013-09-20 Thread Nikolas Stevenson-Molnar
Two other options, depending on how much control you have over the server: 1) Use nginx instead of Apache (smaller memory footprint, leaving more for Python) 2) Use swap memory (http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/) ... not an option for shared hosting and certain types of

Re: Couple of random Error 500 issues

2013-09-20 Thread Mike Dewhirst
On 21/09/2013 3:34am, Carlos Villavicencio wrote: Hello, I have a django project running on digitalocean (in a 512M server) and suddenly it appears Error 500 on the Apache. I'm running wsgi and only 2 users (because we are starting) Looking on the logs, the errors were the following: 1.

Re: django-celery connects to localhost but not by ip

2013-09-20 Thread Chad Vernon
I wasn't running celerycam, but now I am. I also wasn't using the -E -B flags. The result is still False though but in the Django Admin, the task has a state of SUCCESS. I don't know if it matters or not, but this is how I am starting my workers, celerycam through Fabric: sudo('ps

Couple of random Error 500 issues

2013-09-20 Thread Carlos Villavicencio
Hello, I have a django project running on digitalocean (in a 512M server) and suddenly it appears Error 500 on the Apache. I'm running wsgi and only 2 users (because we are starting) Looking on the logs, the errors were the following: 1. ImproperlyConfigured: Error importing middleware

Re: django-celery connects to localhost but not by ip

2013-09-20 Thread Celso Providelo
Hi Chad, Are you running a celery worker instance ? (`manage.py celery worker -E -B`) You also have to run `manage.py celerycam` in order to see celery action/history in the django admin interface I use the following makefile rule in order to activate djcelery in development environments: {{{

Using Django RelatedField for custom join queries?

2013-09-20 Thread Diederik van der Boor
Hi all, I've asked this question on stackoverflow (http://stackoverflow.com/questions/18913661/using-django-relatedfield-for-custom-join-queries), but figured it might be better to post it here: I'm curious whether a RelatedField can be used to cause custom join queries. I would like to apply

Re: django-celery connects to localhost but not by ip

2013-09-20 Thread John DeRosa
Nope… Good luck! On Sep 19, 2013, at 9:23 PM, Chad Vernon wrote: > Thanks, I found the issue after checking the logs. > > I saw in the log that it listed the AMQP connection that it accepts: > > =INFO REPORT 19-Sep-2013::20:52:57 === > accepting AMQP connection

Experience of django on AWS

2013-09-20 Thread Andreas Kuhne
Hi all, Has anyone any experience of django in the AWS cloud? For example using Amazon Beanstalk with a django 1.5 application? Or any other pitfalls that can occur when transitioning to AWS? Regards, Andréas -- You received this message because you are subscribed to the Google Groups

How to share model/data cross django project

2013-09-20 Thread Dig
Hi, There are about 20 views in a django project (with a django app). Recently, a new requirement occurred, someone want to split current views into 2 site but the database is unique. That means 2 subdomain, 2 views sets, 2 deployment scripts, but only one database. Can I implement this

Re: djangojobs.com

2013-09-20 Thread Tomas Ehrlich
I wonder if licence agreement applies for this case, since domain was clearly bought before Django project finished it's trademark policy. Dne Fri, 20 Sep 2013 08:23:27 -0400 Karen Tracey napsal(a): > Please note any use of djangojobs.com domain would need to conform to the

Re: djangojobs.com

2013-09-20 Thread Karen Tracey
Please note any use of djangojobs.com domain would need to conform to the Django trademark license agreement: https://www.djangoproject.com/trademarks/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

djangojobs.com

2013-09-20 Thread djangopro
Hi guys, I assume I shouldn't be allowed to post this here but this is kind of an emergency so I hope you forgive me just this time. Long store short I have the domain djangojobs.com I have been the only owner since 2006 but never had the time to develop a job board for it. Now I urgently

Pyes and global connection

2013-09-20 Thread Mahdi Mazaheri
Hi I want to use Pyes with django. The problem is that I dont know how to make a global connection in django so get rid of overhead of openning and closing the connection. this is how making connection with pyes: import pyes conn = pyes.ES('127.0.0.1:9500') should I define a global

Enforcing minimum and maximum values in Django model fields

2013-09-20 Thread Abijith Mg
http://blog.p3infotech.in/2013/enforcing-minimum-and-maximum-values-in-django-model-fields/ -- 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

Re: Using environment variables in settings.py - good practice? How to handle missing variables gracefully?

2013-09-20 Thread Vernon D. Cole
There is indeed a better way: Structured Settings. Turn the usual pattern of having settings.py import local_settings.py upside down. Call your specific setting (you can specify it be altering the DJANGO_SETTINGS_MODULE environment variable in your virtualenv activation script) and it will