How do I create a script to fill in django admin login form and submit?

2013-08-13 Thread 7equivalents
Here is what I'm doing. I have written a script the runs and monitors a serial connection for incoming data. The data comes from an RFID tag reader. I have that working. What I'd like to do is use this rfid tag number to fill in the password feild and submit the django Admin login form. I'm

Processing uploaded file before save

2013-08-13 Thread Stewart Johnston
Hi all, I'm trying to put together a little site that handles document uploads. There needs to be a little bit of processing of the document I call save(). I'm putting this in as part of the model, since I want it to work in the admin interface as well as via a webform, so my code currently

Re: Creating an "Edit Page"

2013-08-13 Thread Jason Arnst-Goodrich
You might want to look into class based views: https://docs.djangoproject.com/en/dev/topics/class-based-views/ These are then extended to create "generic views" that handle a lot of these common patterns. there's something called an "UpdateView" that handles this exact pattern:

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Nevio Vesic
This is first link that I discover ( not sure if it's the best as they are saying ) but : http://lincolnloop.com/django-best-practices/deployment/servers.html I'd go off the apache2 but heck, that's just me. If I am correct you need to go to apache httpd.conf file and add ServerName localhost and

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
My django app log looks like this: 2013-08-13 20:09:20 [16822] [INFO] Handling signal: quit 2013-08-13 20:09:20 [16833] [INFO] Worker exiting (pid: 16833) INFO:gunicorn.error:Worker exiting (pid: 16833) 2013-08-13 20:09:20 [16834] [INFO] Worker exiting (pid: 16834) INFO:gunicorn.error:Worker

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
I edit my port, sites enabled files etc. Now two sites run different port but i got an error: 502 Bad Gateway Also when i type "service apache2 restart" there is error "Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" error. I think real

[ANNOUNCE] Security releases issued (1.4.6, 1.5.2, 1.6b2)

2013-08-13 Thread Jacob Kaplan-Moss
Hi folks -- Today the Django team is issuing multiple releases -- Django 1.4.6, Django 1.5.2, and Django 1.6 beta 2 -- as part of our security process. These releases address two cross-site scripting (XSS) vulnerabilities: one in a widget used by Django's admin interface, and one in a utility

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Aaron C. de Bruyn
Just a stab in the dark, but are both projects using the same port? Using gunicorn, you can set the IP and port the server runs on, then in Nginx you need to tell each app to use the correct port. Example from memory: /home/aaron/app1 $ python manage.py gunicorn 127.0.0.1:8000 /home/aaron/app2

Re: check user status

2013-08-13 Thread Tcheck
Yes, kind of like facebook. Can u guide me please. On Tuesday, August 13, 2013 7:45:56 PM UTC+5:30, Muhammed TÜFEKYAPAN wrote: > > What do you mean with like? Is it Facebook like or other action on your > project? > > On Tuesday, August 13, 2013 8:40:37 AM UTC+3, Tcheck wrote: >> >> Hi, >> How

Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
Hello Everyone, I use digitalocean for server and i install nginx and unicorn for django. I have one service for my project. I also want to add new django project and i made it with making new services. When my one project running the other project stop. How can i run two projects same

Re: check user status

2013-08-13 Thread Muhammed TÜFEKYAPAN
What do you mean with like? Is it Facebook like or other action on your project? On Tuesday, August 13, 2013 8:40:37 AM UTC+3, Tcheck wrote: > > Hi, > How do i check whether a user has liked an object or not? And if yes, how > do block the user from liking it again? Any help will be

Re: Incrementing the slug by avoiding Integrity error in django models save method

2013-08-13 Thread Tom Evans
On Mon, Aug 12, 2013 at 9:46 AM, shiva krishna wrote: > I have a model with two fields as below > > **models.py** > > class Publisher(models.Model): > name = models.CharField(max_length=200) > slug = models.SlugField(max_length=150, unique=True) > >

How to add threaded comments in zinnia?

2013-08-13 Thread Hari Haran
I have been using zinnia as a blogging platform in my website. But i am unable to integrate threaded comments in zinnia. I tried installing zinnia_threaded_comments app and following the instructions given in the read me file. Can any one tell me, why it isn't working. What other options are

Re: how to print json object in django template?

2013-08-13 Thread Charly Román
{{ jsonobject|safe }} 2013/8/13 navnath gadakh : > > -- > 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: Error importing middleware django.contrib.sessions.middleware

2013-08-13 Thread Adam
Thank you so much WongoBongo, Yes I have sync database but now when I run the command again i get this following error (i tried with python2.7 manage.py syncdb and python2.7 manage.py syncdb --settings=settings_mysetting): raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))

AttributeError: '__proxy__' object has no attribute 'decode'

2013-08-13 Thread abhijeet shete
Hi Folks, I implemented one independent django app with python 2.7. I ported it to python 3 from python 2.7 using 2to3 module. I created egg of this app using setuptools and using it in another django project with version 1.5.1 of django. Some of my view functions are using

Re: Error importing middleware django.contrib.sessions.middleware

2013-08-13 Thread Kelvin Wong
Did you do this part (from the docs): https://docs.djangoproject.com/en/1.5/topics/http/sessions/#using-database-backed-sessions Using database-backed sessions ... Once you have configured your

how to print json object in django template?

2013-08-13 Thread navnath gadakh
-- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.