Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread easypie
i followed the django-http+uwsgi quick start and ended up with an error. ImportError: no module named django.core.handlers.wsgi \n unable to load app ... here's the error log: dpaste.org/BM5BW On Sunday, April 29, 2012 11:31:43 AM UTC-7, Roberto De Ioris wrote: > > > > I have this file that was

Re: Can't start new project

2012-04-29 Thread Sandra
I have the same problem Jani had and I tried this but it is not working for me. The window still appears when i run "django-admin.py startproject ". The window is the django-admin file and the text it contents is: #!/usr/bin/env python from django.core import management if __name__ == "__main__":

Re: @login_required do nothing

2012-04-29 Thread Reinout van Rees
On 28-04-12 21:00, marcelo nicolet wrote: Following the on-line docs ( https://docs.djangoproject.com/en/1.4/topics/auth/ ) I decorated my "index" view with @login_required, but nothing happens. In other words, it'supossed I would be redirected to a login page, else an exception migth raise. But

Re: outdated django book

2012-04-29 Thread Reinout van Rees
On 29-04-12 21:24, knowledge_seeker wrote: On Friday, April 27, 2012 7:09:32 PM UTC-7, knowledge_seeker wrote: My Django book (from the university library) said to add the label "@login_required" to views that I wish to restrict user access on. Django 1.4 does not allow this;

Re: Unable to get result using distance query

2012-04-29 Thread Reinout van Rees
On 26-04-12 00:02, vishy wrote: I am using PointField to store longitude and latitude with SRID 4326. All my places are in USA. Now, given a reference point, I do lat = "41.881944" lng = "-87.627778" ref_pnt = fromstr("POINT(%s %s)" % (lng, lat)) You have probably

Re: buildout development vs. deployment

2012-04-29 Thread Reinout van Rees
On 25-04-12 12:21, Reikje wrote: Hi, I am looking into buildout to deploy a django webapp and all it's dependencies. I find it quite useful even during development because it forces you to keep track of your dependencies. A question regarding some best practices. Lets say I have buildout.cfg and

Re: Loading static files from a dev environment

2012-04-29 Thread Reinout van Rees
On 23-04-12 12:56, gnesher wrote: I'm having an odd problem with my test Django environment. It seems that static filles I've collected from different apps using the collectstatic command works fine, while other static files I placed in myself result in 404 error. This can happen from the same

Re: outdated django book

2012-04-29 Thread knowledge_seeker
Thanks for the help guys; I am glad the books were not so out of date! On Friday, April 27, 2012 7:09:32 PM UTC-7, knowledge_seeker wrote: > > My Django book (from the university library) said to add the label > "@login_required" to views that I wish to restrict user access on. > Django 1.4

Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread Karl Sutt
Here is my uWSGI command and nginx.conf contents: uwsgi -- http://www.dpaste.org/aiJuq/ nginx -- http://www.dpaste.org/bAG0o/ I've used it for a Flask application, but I've just tested it and it works for a Django project as well. Note that wsgi.py file in the uwsgi command is the Python file

Many-to-Many Intermediary Models in Django admin

2012-04-29 Thread LuSyo
Hello, Here is the model I am working on : class Recipe(models.Model): title = models.CharField(max_length=200) description = models.TextField(blank=True) ingredient = models.ManyToManyField('Ingredient', through='Content',null=True) class Ingredient(models.Model):

Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread Roberto De Ioris
> I have this file that was created for me by one of the users in django's > irc channel. I edited to have the right information inserted but I"m not > sure what I'm doing wrong to not make it work. I've spent some time trying > to understand each line by searching the web. There's still a thing

[help] Server Config: django + uwsgi + nginx

2012-04-29 Thread easypie
I have this file that was created for me by one of the users in django's irc channel. I edited to have the right information inserted but I"m not sure what I'm doing wrong to not make it work. I've spent some time trying to understand each line by searching the web. There's still a thing or two

Re: Using Django to develop a Database?

2012-04-29 Thread Alec Taylor
Quick offside: checkout the NLTK project for processing the information On Sun, Apr 29, 2012 at 5:05 PM, Kevin A wrote: > Hello, > > I'm hoping someone can help me with my research. > > I've been tasked with helping to construct a Database. Within this > database will

Re: Django + Windows Server 2003 + IIS6 + MSSQL 2005

2012-04-29 Thread Samuel Pérez Osés
I know it is not the same version you have mentioned, but have you tried http://www.helicontech.com/ they have deployed django over IIS 7, and it is well documented El jueves, 26 de abril de 2012 13:59:43 UTC+2, honyczek escribió: > > Hi, > > there is a isapi library in the PyWin32 project (

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-29 Thread Swaroop Shankar V
Thanks Kelly, could you tell me what all settings you had provided for it to cache into a separate directory? Thanks and Regards, Swaroop Shankar V On Sun, Apr 29, 2012 at 8:09 PM, Kelly Nicholes wrote: > It always just caches the files for me in a completely different

Re: django- accessing items in a python dictionary

2012-04-29 Thread creecode
On Sunday, April 29, 2012 7:36:17 AM UTC-7, hius...@qq.com wrote: what is value of the etc? > I believe that etc. in this case is an abbreviation for etcetera. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: django- accessing items in a python dictionary

2012-04-29 Thread Karen Tracey
On Sun, Apr 29, 2012 at 6:01 AM, Alan Mo wrote: > My dictionary is as follows: > > data={"BE1234":"abc", "BA3212":"efg", etc} > > I call it through django templates. According to the online manual, they say > "if your context contained a dictionary data, the following would

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-29 Thread Kelly Nicholes
It always just caches the files for me in a completely different directory. On Saturday, April 28, 2012 1:06:12 PM UTC-6, Swaroop Shankar wrote: > > Hello All, > I am using sorl-thumbnail extensively in my project. It works perfectly > fine except for one issue which is regarding the storage.

Re: django- accessing items in a python dictionary

2012-04-29 Thread Hiuser Su
what is value of the etc? 2012/4/29 Alan Mo : > My dictionary is as follows: > > data={"BE1234":"abc", "BA3212":"efg", etc} > > I call it through django templates. According to the online manual, they say > "if your context contained a dictionary data, the following would

Re: Using Django to develop a Database?

2012-04-29 Thread Timothy Makobu
Django Admin fits your needs well https://docs.djangoproject.com/en/dev/ref/contrib/admin/ On Sun, Apr 29, 2012 at 10:05 AM, Kevin A wrote: > Hello, > > I'm hoping someone can help me with my research. > > I've been tasked with helping to construct a Database. Within

django- accessing items in a python dictionary

2012-04-29 Thread Alan Mo
My dictionary is as follows: data={"BE1234":"abc", "BA3212":"efg", etc} I call it through django templates. According to the online manual, they say "if your context contained a dictionary data, the following would display the keys and values of the dictionary": {% for key, value in

Using Django to develop a Database?

2012-04-29 Thread Kevin A
Hello, I'm hoping someone can help me with my research. I've been tasked with helping to construct a Database. Within this database will be information (such as their strengths and weaknesses, how successful they are, etc.) about various organizations. Most of this information is more

html5 + Django

2012-04-29 Thread collectiveSQL
Hi Everyone, I'm working on a heavily animated web site using the html5 canvas tag. Its mainly made of html, javascript and css static files and I'd like to integrate the Google Identity Toolkit for an Oauth 2.0 account chooser for signup and registration. The first question is Django a good

Re: ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
The database is PostgreSQL 9.1.3 On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu wrote: > Hi, > > I'm getting an "unknown locale" exception and yet the LANG environment > variable is set: > > Traceback (most recent call last): > File "manage.py", line 14, in >

ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
Hi, I'm getting an "unknown locale" exception and yet the LANG environment variable is set: Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in

Re: dutch django hoster

2012-04-29 Thread Marcin Tustin
checkout djangofriendly.com - there are a couple of dutch-speaking hosting companies with decent reputations. On Sat, Apr 28, 2012 at 23:23, Vidja wrote: > I'm looking for a reliable Dutch (speaking) hosting company that is > able to host a Django based website for a

Re: Can't find module

2012-04-29 Thread Gerald Klein
OK thanks I changed and it worked, I appreciate your help --jerry On Sat, Apr 28, 2012 at 4:28 AM, Alagappan wrote: > In your installed applications list you have mentioned 'search' as an > application. But in your url pattern you are using 'cms.search'. Either use >