How to integrate Postgresql db with Django,so that data will be retrieved from that postgresql db table and show it on browser via html

2013-12-02 Thread Swastik Acharya
django 1.4 version postgresql 9.1 version I have successfully loaded all the html files and css on browser using django. Now i have some tables in postgresql ,which i need to integrate it with django and .html files so that data will be read and execute both from html file inputs and database

Using time.tzset() in settings.py

2013-12-02 Thread Stephen
I'm looking for the best-practice for handling when a class uses Python's time.timezone and it is imported when the settings file is loaded but it is also instantiated within a Django site. I get the timezone as expected from the OS as opposed to the timezone declared in the TIMEZONE setting bec

Save the user from one model to the another model

2013-12-02 Thread Aamu Padi
What I want to do is, whenever I create a new message, I want the *sender *of the *Message* to be added to the *user *of the *Thread.* How do I do that? > class Thread(models.Model): > user = models.ManyToManyField(User) > is_hidden = models.ManyToManyField(User, related_name='hidden_thre

How to replace Django ORM with sqlalchemy

2013-12-02 Thread Chen Xu
I am planning to replace Django's ORM with sqlalchemy, does anyone know any good tutorials step by step or github repo that show you how to do it? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Security Advisory: ImageField abuse

2013-12-02 Thread Jacob Kaplan-Moss
Hi folks - We've just published a short security advisory about ImageFields: https://www.djangoproject.com/weblog/2013/dec/02/image-field-advisory/ ImageField expects a valid image file, but depending on your app it may allow uploads on non-image content, such as HTML or JavaScript. Unfortun

Re: Problems with default settings.py file

2013-12-02 Thread Blake Adams
Thanks Felipe! On Monday, December 2, 2013 11:03:54 AM UTC-5, Felipe Coelho wrote: > > 2013/12/2 Blake Adams > > >> Hello I am a python noob going through the getttingstarted with django >> tutorial. >> >> For some reason When I start a new project, the default settings.py file >> is missing a l

Re: Problems with default settings.py file

2013-12-02 Thread Felipe Coelho
2013/12/2 Blake Adams > Hello I am a python noob going through the getttingstarted with django > tutorial. > > For some reason When I start a new project, the default settings.py file > is missing a lot of default settings (Admin, Media, Some of the Databse > info, Statis_file, Logging, etc.). I

Problems with default settings.py file

2013-12-02 Thread Blake Adams
Hello I am a python noob going through the getttingstarted with django tutorial. For some reason When I start a new project, the default settings.py file is missing a lot of default settings (Admin, Media, Some of the Databse info, Statis_file, Logging, etc.). Im looking for any direction on w

storing user uploaded files on another local machine

2013-12-02 Thread agend
So I have frontend django application on one machine while want to save user uploaded files to another computer - which will work as a file server (nginx serving static files) and trying the best solution. So far I'm thinking about setting up ftp server on the second machine and use this ftp st

How to get database data into a template sidebar

2013-12-02 Thread Drew Ferguson
Hi I am not really sure how to ask the Django docs what I want to do for this Could someone point me at the docs please I have a 3 column layout: left & right unchanging columns and a main column in the middle Left column is a fixed navigation template Centre column is the usual dynamic CBV temp

Re: Email Templates and the full website URL

2013-12-02 Thread Vibhu Rishi
Not sure how the header injection will work in this case ? As I see it, I am using this in the email text for the email body. This is generated and sent in a view function I have. So, how will the http header get inserted in this flow ? Vibhu On Fri, Nov 29, 2013 at 7:39 PM, Joseph Mutumi wro

Re: python virtual environment

2013-12-02 Thread Timothy W. Cook
On Fri, Nov 29, 2013 at 3:44 PM, tino wrote: > > > Hello > > I am trying to run a project that was setup in another server, but getting > the following error. I am using python 2.7, django, virtualenv. So I am > running the project inside a python virtual environment > > > (virtualenv)[web.srv1 da

Re: Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2013-12-02 Thread Paul Whipp
Hi Russ, Thanks for your detailed response, deserving of this detailed investigation: I eventually found that it is the simple declaration of a model within the test suites that is causing the problem: django.contrib.contents.tests causes the problem - even if I removed all of the tests and just