How to build RESTful API for django.contrib.comments?

2013-03-29 Thread Pratik Mandrekar
Hello, I have a Generic Relationships in tastypie and incorporated the same in my resource for django.contrib.comments.models.Comment My resource looks like this. It works fine for GET without the generic

How to manage django settings.py for Github, local, production

2013-03-29 Thread surya
Everyone talked about local, production settings.. try: from local_settings.py import * except: # general settings.py my case needs three different settings: Github, local, production I have Django repo on github, and on pc (local). Now, need to push to another tree, the production serv

Re: How to manage django settings.py for Github, local, production

2013-03-29 Thread surya
On Friday, March 29, 2013 1:10:12 PM UTC+5:30, surya wrote: > > Everyone talked about local, production settings.. > > try: >from local_settings.py import * > except: ># general settings.py > > my case needs three different settings: Github, local, production I have > Django repo on gi

Re: How to manage django settings.py for Github, local, production

2013-03-29 Thread Alexey Kinyov
Hi, Surya! My practice is to have 'settings_template.py' in repository and 'settings.py' ignored, so 'settings.py' looks like: from settings_template import * # and here's confidential settings and other There also may be many 'templates' for settings, like 'settings_dev.py', 'settings_pr

Re: How to manage django settings.py for Github, local, production

2013-03-29 Thread Branko Majic
On Fri, 29 Mar 2013 00:40:12 -0700 (PDT) surya wrote: > In our project, as its opensource, the master branch can't be > directly pushed into Production server as it contains confidential > settings.. For that I (admin of server) created a local branch to > specifically contain production settings

Re: Redirects working locally but not in live server

2013-03-29 Thread angelika
Thanks for the tips! I am absolutely sure that I restarted both nginx and gunicorn. But I'm gonna check with the server dudes if they can give me some insight into the inner workings of their universe. /Angelika On Thursday, March 28, 2013 6:18:59 PM UTC+1, ke1g wrote: > > Are you sure that yo

Django HTML controls and CRUD creation functionalities

2013-03-29 Thread jackuct1
I am new to Django, and read through some of the tutorials and cannot find the answer the below. I just learn about asp.net/and Yii in PhP, for the HTML control(textbox, button, image, etc.) they have their own built in controls, in order to save state across page posting back, I am not sure

How to get the the filename of WGET?

2013-03-29 Thread lx
hi all: I want to send information to django use this: wget -v --post-file=conf.xml http://192.168.23.73:8001/ipdb_file/ And the Python code is: def receive(request): """ receive all the xml form myCONF. """ if request.method == 'POST': conf

Django wiki and notify

2013-03-29 Thread Josue Balandrano
Hi everyone. I just installed django in a test local server. Within a virtualenv and postgres. Everything is working ok, in a basic installation sense of the word. The thing is that I am trying to install django-wiki and I have installed all of the requirements but I am getting some trouble with

Re: Django HTML controls and CRUD creation functionalities

2013-03-29 Thread Pankaj Singh
Hey, On Fri, Mar 29, 2013 jacku...@gmail.com wrote: > I just learn about asp.net/and Yii in PhP, for the HTML control(textbox, > button, image, etc.) they have their own built in controls, in order to save > state across page posting back, I am not sure does Django has similar > built-in controls,

Re: Django wiki and notify

2013-03-29 Thread Tim Cook
It might help to have the traceback to see 'where' the actual error is occuring. --Tim On Fri, Mar 29, 2013 at 9:31 AM, Josue Balandrano wrote: > Hi everyone. I just installed django in a test local server. Within a > virtualenv and postgres. Everything is working ok, in a basic installation > s

Re: How to get the the filename of WGET?

2013-03-29 Thread Michael Elkins
In order to get the filename, you will need to use the multipart/form-data encoding (RFC2388). wget does not support this, but curl does when you use the -F option: curl -F file=@conf.xml http://192.168.23.73:8001/ipdb_file/ However, your code will need to be modified to use the requ

Re: Django wiki and notify

2013-03-29 Thread Josue Balandrano
Yeap. Sorry about this. It's working now. Apparently the version installed with pip or easy_install is not worknig correctly. I fixed it by uninstalling and installing it like so: pip install git+https://github.com/benjaoming/django-wiki.git El viernes, 29 de marzo de 2013 09:42:08 UTC-5, Tim C

Clarification on building urls

2013-03-29 Thread CatDude
I am making my first attempt to get django working with Apache. Specifically, I'm trying to add some django functionality to a site that is already running other web-based applications (mostly nagios). So what I've done is create a project with "django-admin.py startproject dashboard" in /home/sour

Confusion about Static Files

2013-03-29 Thread David Pitchford
I am experienced with Python but new to Django and web development in general. I am struggling to understand its static files system from the documentation . It seems like I have to set multiple settings variables and create multiple fo

Re: Confusion about Static Files

2013-03-29 Thread Brian Schott
David, This took me a while to figure out also when I first started. Running with debug on and runserver works great, then you try to use it in production and things break. The big picture idea is that static files are intended to be hosted by something in front of Django, be that Apache or N

Question about documentauion under Managers>Adding extra Manager methods

2013-03-29 Thread James Durham
In the example: class PollManager(models.Manager): def with_counts(self): from django.db import connection cursor = connection.cursor() cursor.execute("""SELECT p.id, p.question, p.poll_date, COUNT(*)FROM polls_opinionpoll p, polls_response r

Re: Question about documentauion under Managers>Adding extra Manager methods

2013-03-29 Thread Russell Keith-Magee
On Sat, Mar 30, 2013 at 6:20 AM, James Durham wrote: > In the example: > > class PollManager(models.Manager): > def with_counts(self): > from django.db import connection > cursor = connection.cursor() > cursor.execute("""SELECT p.id, p.question, p.poll_date,