Re: Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
Found that jquery ajax does not load correctly in my firefox install. Stock jquery example wasnt working either so I ran it in a Windows IE install. On Mar 14, 8:59 pm, Eli_West wrote: > I just updated the jquery library so I shouldn't be that. > > Ive got to be doing something wrong.. theres

ANN: Django 1.4 release candidate 2 issued

2012-03-14 Thread James Bennett
Subject line says it all, and details, as always, are on the weblog: https://www.djangoproject.com/weblog/2012/mar/14/14rc2/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Multiple Choice Quiz

2012-03-14 Thread jbr3
Can anyone help me with some questions I still have about this ? I haven't had much experience with web programming, so trying to understand this is kind of challenging. 1. I created the models Shawn suggested. And I'm now able to add a question and possible answers to it in the admin area. Each p

Re: sending django email via gmail

2012-03-14 Thread Karen Tracey
2012/3/14 infinitylX : > 465 is a port for gmail and code i provide is completely working... > but question is why django is not working with same settings... Because, as JJO stated, the code you show is NOT what Django does when establishing a secure email connection. The code you showed establis

Re: Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
I just updated the jquery library so I shouldn't be that. Ive got to be doing something wrong.. theres no way .load() simply doesn't work with django. On Mar 14, 8:39 pm, Eli_West wrote: > Thanks for the reply. It is loaded as an external script/file. That is > how it listed below right? Ive t

Re: Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
Thanks for the reply. It is loaded as an external script/file. That is how it listed below right? Ive tried including it right in the file too. I think I know what you mean about using the url tag, I justed tried this solution but with no results: $(document).ready(function() { $('.l

Re: Simplest way to get all models for which admin interface exists

2012-03-14 Thread Matt Schinckel
All installed ModelAdmin models: >>> from django.contrib.admin import site >>> site._registry.keys() If you only got at this from `manage.py shell`, then you may need to import your urls.py file first. Getting those that are not registered is a bit longer: >>> from django.db.models import get_

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread Matt Schinckel
I don't use a setup.py for my _project_ deployment, but I do have a setup.py for each of the apps that I use within a project (or at least those that are 'reusable') For project deployment, I use a fabfile that does the following: * installs public keys onto the server (if necessary) * creates

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread Andrew Cutler
On 15 March 2012 02:40, bruno desthuilliers wrote: > We dont - we use virtualenvs (no-site-packages), pip requirements, and > git. We do the same here. Our deployment looks something like # mkvirtualenv --no-site-packages foo # workon foo # cdvirtualenv # svn checkout bar # pip install -r deploy

Re: How can I print form errors from inside the test

2012-03-14 Thread Daniel Roseman
On Wednesday, 14 March 2012 16:43:12 UTC-7, somecallitblues wrote: > > Thanks Daniel and Karen, > > Karen, I;'m not entirely sure what an unbound form is. :) > Then you must not have read the documentation[1], which goes into great detail about bound and unbound forms. That's pretty much a prereq

Re: How can I print form errors from inside the test

2012-03-14 Thread Mario Gudelj
Thanks Daniel and Karen, Karen, I;'m not entirely sure what an unbound form is. :) Anyway, this is my test code: def test_appointment_form(self): c = Client() base_data = { 'name':'Foo name', 'slug':'foo-session', 'short_descr':'foo tagline',

Re: How to disable re-POST via F-5

2012-03-14 Thread Gelonida N
On 03/15/2012 12:35 AM, Russell Keith-Magee wrote: > > On 15/03/2012, at 5:32 AM, Gelonida N wrote: > >> Hi, >> >> I'm having a django view, that works for GET and POST requests. >> >> Basically une can view some data with GET >> and add / moify data with a tiny form and POST >> >> As the data ca

Re: How to disable re-POST via F-5

2012-03-14 Thread Russell Keith-Magee
On 15/03/2012, at 5:32 AM, Gelonida N wrote: > Hi, > > I'm having a django view, that works for GET and POST requests. > > Basically une can view some data with GET > and add / moify data with a tiny form and POST > > As the data can change I added a refresh button and this works fine. > > Th

Re: Django Database User-Side Access Basics

2012-03-14 Thread Nikolas Stevenson-Molnar
I think Fady means a tutorial for creating forms (not in admin) for editing polls. IIRC, the tutorial only covers editing polls via admin. Fady: I would take a look at the forms section of the docs: https://docs.djangoproject.com/en/1.3/topics/forms/. No tutorials, but plenty of example code.

Re: WSGI Issues - webfaction

2012-03-14 Thread hack
Got it. I forgot to add it to my python path in httpd.conf. On Wednesday, March 14, 2012 3:26:43 PM UTC-4, William Ratcliff wrote: > > I can't answer this now, but the support at webfaction is really good and > remarkably quick if no one here can get back to you quickly... > > On Wed, Mar 14, 20

Simplest way to get all models for which admin interface exists

2012-03-14 Thread Gelonida N
Hi, Title says it all. What is the simplest way to get a list of models for which an admin interface exists? I'd also be interested in getting a list of all models for which no admin interface exists. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Getting URL from within a template

2012-03-14 Thread Furbee
Gotcha, you are filtering the QuerySet in Django, returning to client, and further filtering with jQuery. Makes sense now. :-) Happy Coding! Furbee On Wed, Mar 14, 2012 at 2:11 PM, Larry Martell wrote: > On Tue, Mar 13, 2012 at 4:26 PM, Furbee wrote: > > Oh, you are filtering in the template,

How to disable re-POST via F-5

2012-03-14 Thread Gelonida N
Hi, I'm having a django view, that works for GET and POST requests. Basically une can view some data with GET and add / moify data with a tiny form and POST As the data can change I added a refresh button and this works fine. The problem is just, that some users don't use it but insist on using

Re: Getting URL from within a template

2012-03-14 Thread Larry Martell
On Tue, Mar 13, 2012 at 4:26 PM, Furbee wrote: > Oh, you are filtering in the template, using Django, sorry. I thought you > meant you pass it to the template and use jQuery to filter. My bad. :-) I am filtering in the template using jQuery. > > Cheers > > > On Tue, Mar 13, 2012 at 3:25 PM, Furb

Re: Getting URL from within a template

2012-03-14 Thread Larry Martell
On Tue, Mar 13, 2012 at 4:25 PM, Furbee wrote: > Aha! Very nice. As a sidebar, you said you pass the filter string back to > the template so it can apply filtering on the new data set. This makes me > think that filtering is being done on the entire data set from the browser, > instead of the serv

Re: Django Database User-Side Access Basics

2012-03-14 Thread Javier Guerra Giraldez
On Wed, Mar 14, 2012 at 1:35 PM, Fady Kamal wrote: > no i need a tutorial to help me do these tasks that's exactly what was suggested: go to the Django site and do the tutorial. incidentally, most of the exercises are about a poll application -- Javier -- You received this message because yo

Re: mysql tables - primary key

2012-03-14 Thread Joel Goldstick
On Tue, Mar 13, 2012 at 9:51 AM, siva <85s...@gmail.com> wrote: > We are going to convert our tools to django frame work > > We have been converted our existing mysql database table to model.py > but we cant access one table properties > > FYI : table is not having primary id what we have to do - r

Re: newbie django hosting question

2012-03-14 Thread NENAD CIKIC
I have gone with linode, and i setup the vps as i did with my virtualbox. No surprises and i am alive now. On 13 ožu, 16:11, Bill Freeman wrote: > I'm not sure that "django hosting" nails anything down.  It could mean > whatever the provider wants it to mean, from "we won't kick you off > for usi

Re: WSGI Issues - webfaction

2012-03-14 Thread william ratcliff
I can't answer this now, but the support at webfaction is really good and remarkably quick if no one here can get back to you quickly... On Wed, Mar 14, 2012 at 3:22 PM, hack wrote: > Hey folks, > I've finally got my app ready to put it online and got an account over at > webfaction. I've set e

WSGI Issues - webfaction

2012-03-14 Thread hack
Hey folks, I've finally got my app ready to put it online and got an account over at webfaction. I've set everything setup and configured, but I missed a step somewhere and not sure exactly which one. When I type in my url I get a 404 as shown below. However, the message appears as though it

Re: Running manage.py commands in Windows Power Shell

2012-03-14 Thread orschiro
Hello Tom, I'm aware of that. But do not get me wrong. I only use Power Shell to run the commands, for nothing more. it is simply more comfortable for me than CMD. By running Python on Windows you mean the Python IDLE? Regards On Mar 14, 6:51 pm, Tom Evans wrote: > On Wed, Mar 14, 2012 at 5:3

Re: Django Database User-Side Access Basics

2012-03-14 Thread Fady Kamal
no i need a tutorial to help me do these tasks On Wednesday, March 14, 2012 8:28:54 PM UTC+2, dummyman dummyman wrote: > > python official website will be good start > > On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > >> Hello i am new to django and i've completed the Polls app tutorial >>

Re: What directory do I install Django on Linux server

2012-03-14 Thread Denis Darii
Hello Alex. Yes, when you install django using *"pip install django*" or "*python setup.py install*" directly from the source, the code goes to the correct directory inside of the "current" sites-packages. To find out where your installed django code is placed you can simply run: $ python -c "im

Re: Django Database User-Side Access Basics

2012-03-14 Thread dummyman dummyman
python official website will be good start On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > Hello i am new to django and i've completed the Polls app tutorial > sucessfully,and what i want to do now *FROM THE USER SIDE *is the > following : > > 1-create poll. > 2-delete poll. > 3-edit the q

Re: Django Database User-Side Access Basics

2012-03-14 Thread dummyman dummyman
python official website will be good start On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > Hello i am new to django and i've completed the Polls app tutorial > sucessfully,and what i want to do now *FROM THE USER SIDE *is the > following : > > 1-create poll. > 2-delete poll. > 3-edit the q

Django Database User-Side Access Basics

2012-03-14 Thread Fady Kamal
Hello i am new to django and i've completed the Polls app tutorial sucessfully,and what i want to do now *FROM THE USER SIDE *is the following : 1-create poll. 2-delete poll. 3-edit the question in a specific poll. 4-add a choice to the poll. 5-remove a choice from a poll. i don't have knowledg

Re: django admin login

2012-03-14 Thread dummyman dummyman
Wer is the SESSION_COOKIE_DOMAIN ? On Wed, Mar 14, 2012 at 11:32 PM, dummyman dummyman wrote: > hi > > i got this error msg > > Please enter a correct username and password. Note that both fields are > case-sensitive. > > > On Wed, Mar 14, 2012 at 11:21 PM, vikalp sahni wrote: > >> Can you share

Re: sending django email via gmail

2012-03-14 Thread infinitylX
465 is a port for gmail and code i provide is completely working... but question is why django is not working with same settings... On Wednesday, March 14, 2012 4:51:47 PM UTC+2, JJO wrote: > > I think you want to use port 587 if you are using TLS. We are using > port 587 successfully with gmail.

Re: Jquery .load() function not responding with django

2012-03-14 Thread Daniel Roseman
On Wednesday, 14 March 2012 09:21:29 UTC-7, Eli_West wrote: > > I've ran into in issue where jquery .load() will load extra content by > directly opening html file in a browser but if served through Django > devel server the jquery load() is ignored. Have no idea what could be > happening but I'

Re: django admin login

2012-03-14 Thread dummyman dummyman
hi i got this error msg Please enter a correct username and password. Note that both fields are case-sensitive. On Wed, Mar 14, 2012 at 11:21 PM, vikalp sahni wrote: > Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file. > > Also, is there any error message which is displ

What directory do I install Django on Linux server

2012-03-14 Thread Alex Glaros
Does it make any difference what directory I download and unzip Django tarball on a Linux server? Should it be nside the Python directory? When I install, does it find its correct directory by itself? thanks, Alex Glaros -- You received this message because you are subscribed to the Google Gr

Re: django admin login

2012-03-14 Thread vikalp sahni
Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file. Also, is there any error message which is displayed on top of login form when you try to login? Regards, //Vikalp On Wed, Mar 14, 2012 at 11:06 PM, dummyman dummyman wrote: > hi .. > > I created a superuser but still ge

Re: Running manage.py commands in Windows Power Shell

2012-03-14 Thread Tom Evans
On Wed, Mar 14, 2012 at 5:35 PM, orschiro wrote: > Hello, > > I have a question which is based on the discussion here: > > http://groups.google.com/group/django-users/browse_thread/thread/2333f5dc8d0674f0 > > I'm working on Windows 7 with the PowerShell. Python 2.7 and the path > to django-admin.p

Re: TypeError

2012-03-14 Thread Tom Evans
On Wed, Mar 14, 2012 at 5:23 PM, coded kid wrote: > Hi guys, I want this code to display list of friends of a user, list > of friends to add, after writing the codes and testing it out, I’m > getting this error: > > TypeError at /userpage/ > user_page() takes exactly 2 arguments (1 given) Your vi

Re: django admin login

2012-03-14 Thread dummyman dummyman
hi .. I created a superuser but still getting the same error @vikalp: But it works for other projects with the same superuser name and password On Wed, Mar 14, 2012 at 10:57 PM, Denis Darii wrote: > Try to create your superuser again: > > ./manage.py createsuperuser > > > On Wed, Mar 14, 2012

Running manage.py commands in Windows Power Shell

2012-03-14 Thread orschiro
Hello, I have a question which is based on the discussion here: http://groups.google.com/group/django-users/browse_thread/thread/2333f5dc8d0674f0 I'm working on Windows 7 with the PowerShell. Python 2.7 and the path to django-admin.py is stored in my PATH variable. After creating a project I ca

Re: Displaying Updates

2012-03-14 Thread Babatunde Akinyanmi
Hi coded, You just mentioned the features of your app not the algorithm you are using for getting updates to a wall. For example algorithm for authenticating a user could be: *if user name submitted exists in database, hash submitted password *compare hash with hash saved in database linked with us

Re: django admin login

2012-03-14 Thread Denis Darii
Try to create your superuser again: ./manage.py createsuperuser On Wed, Mar 14, 2012 at 6:25 PM, vikalp sahni wrote: > You have to check your > > SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if > not cookies will not properly set and hence login will not be allowed) >

Re: django admin login

2012-03-14 Thread vikalp sahni
You have to check your SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if not cookies will not properly set and hence login will not be allowed) the best would be to use some host entry like example.com 127.0.0.1 and then use that in SESSION_COOKIE_DOMAIN and for accessing

TypeError

2012-03-14 Thread coded kid
Hi guys, I want this code to display list of friends of a user, list of friends to add, after writing the codes and testing it out, I’m getting this error: TypeError at /userpage/ user_page() takes exactly 2 arguments (1 given) Request Method: GET Request URL:http://127.0.0.1:8000/userpage/ Dj

django admin login

2012-03-14 Thread dummyman dummyman
Hi, I created a new project in django 1.I created a new database 2. I created a new user 3.python manage syncdb 4.python manae.py runserver when i visit localhost:8080/admin -> it asks for username n passwd. but the login fails inspite of entering correct one But it works for a different project

Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
I've ran into in issue where jquery .load() will load extra content by directly opening html file in a browser but if served through Django devel server the jquery load() is ignored. Have no idea what could be happening but I've seen someone use a django url in the .load() call instead of pointing

Django and MS SQL

2012-03-14 Thread Adolphe Cher-Aime
Good morning all, Can someone share with me its experience with Django application running on MS SQL DB? I have a heavy application that i want to migrate to django. Please can you share your experience with me in term of stability and feasibility? How does django teamup with MS SQL. Regards.

Re: sending django email via gmail

2012-03-14 Thread JJO
I think you want to use port 587 if you are using TLS. We are using port 587 successfully with gmail. In any case, Django 1.3.1 does this, not the code you showed. self.connection = smtplib.SMTP(self.host, self.port, local_hostname=DNS_NAME.get_fqdn()) if self.use_tls:

Re: Displaying Updates

2012-03-14 Thread coded kid
1. User will be able to find each other 2. follow each other if they feel like (it's not necessary the second user follow back) 3. followers will be able to see the users they are following updates on their own wall. On Wednesday, 14 March 2012 10:58:57 UTC+1, Tundebabzy wrote: > > What's your

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread Benedict Verheyen
On 14/03/2012 16:40, bruno desthuilliers wrote: > On Mar 12, 11:55 pm, Tom Eastman wrote: >> Hey guys, >> >> I'm looking for deployment best practices for Django projects. Google >> searches seem to show countless numbers of them, many of them somewhat >> contradictory :-) >> >> So as a simple dis

Re: poll application

2012-03-14 Thread Nikolas Stevenson-Molnar
Please ignore my last email. My email client was slow to load the other replies to this message. _Nik On 3/14/2012 8:50 AM, Nikolas Stevenson-Molnar wrote: Could you provide a bit more information about the error? The error traceback would be useful in resolving the problem. _Nik On 3/14/20

Re: poll application

2012-03-14 Thread Nikolas Stevenson-Molnar
Could you provide a bit more information about the error? The error traceback would be useful in resolving the problem. _Nik On 3/14/2012 2:38 AM, Yasmine El_Badry wrote: when i add this line in admin.py "list_display = ('question', 'pub_date')" , i get an error -- You received this message

Re: templates couple apps to a site; how do you separate them?

2012-03-14 Thread bruno desthuilliers
On Mar 14, 2:31 am, Ken wrote: > I'm struggling with how I should go about writing "pluggable" apps.  I > haven't found a satisfactory way of decoupling apps from a site and > the primary sticking point is templates.  I've combed through some > discussions but have not found any that have helped.

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread bruno desthuilliers
On Mar 12, 11:55 pm, Tom Eastman wrote: > Hey guys, > > I'm looking for deployment best practices for Django projects. Google > searches seem to show countless numbers of them, many of them somewhat > contradictory :-) > > So as a simple discussion point: I'm curious to know if lots of people > us

Re: newbie django hosting question

2012-03-14 Thread Scott Macri
I decided to go with webfraction based on your recommendation. I just setup my account and will let you know how it goes. Thanks. :) On Tue, Mar 13, 2012 at 11:27 AM, NENAD CIKIC wrote: > OK, thanks. > > On 13 ožu, 16:11, Bill Freeman wrote: >> I'm not sure that "django hosting" nails anything

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Javier Guerra Giraldez
On Wed, Mar 14, 2012 at 8:56 AM, Phanounou wrote: > I got itmany thanks  Javier for your patience and your help.I put > formfield_for_foreignkey method everywhere and now it's super fast. I'm glad > you help me find the solution. Again thanks a lot. You made my day :-) great. i'm glad i wasn

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Phanounou
I got itmany thanks Javier for your patience and your help.I put formfield_for_foreignkey method everywhere and now it's super fast. I'm glad you help me find the solution. Again thanks a lot. You made my day :-) Regards, VB 2012/3/14 Javier Guerra Giraldez > On Wed, Mar 14, 2012 at 7:55 A

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Javier Guerra Giraldez
On Wed, Mar 14, 2012 at 7:55 AM, Phanounou wrote: > This is what is taking the most of the time. the gattering of the list of > TObjectAttribute, 3 or 4  times each at a time because TmyObject has 3-4 > attributes value. Because I called it as an admin.StackedInline object in > the admin page. > >

Re: poll application

2012-03-14 Thread vicent
A 2012-03-14 13:52, yasmine.elba...@gmail.com escrigué: this is the error IndentationError at /admin/polls/poll/ unexpected indent (admin.py, line 14) You have an incorrect indent at line 14 of admin.py. -- You received this message because you are subscribed to the Google Groups "Django us

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Phanounou
Hello Javier, I did the verification to see what is taking so much time to fetch and I realise it is because my model "TmyObject" is related to another class model driving his caracteristics. For example, it's like TmyObject can be any car I have another mod

Re: poll application

2012-03-14 Thread yasmine.elbadry
this is the error IndentationError at /admin/polls/poll/ unexpected indent (admin.py, line 14) Request Method:GET Request URL:http://127.0.0.1:8000/admin/polls/poll/ Django Version:1.4c1 Exception Type:IndentationError Exception Value: unexpected indent (admin.py, line 14) Exceptio

Re: poll application

2012-03-14 Thread Karen Tracey
On Wed, Mar 14, 2012 at 5:42 AM, Yasmine El_Badry wrote: > Hi > I'm making a poll application using this tutorial > https://docs.djangoproject.com/en/1.3/intro/tutorial02/ > but when i add this line "list_display = ('question', 'pub_date')"  to > the admin.py , it gives me an error > it worked onc

Re: How can I print form errors from inside the test

2012-03-14 Thread Karen Tracey
The most common reason I have seen for is_valid() to return False but errors to be empty is for the form to be unbound. Unbound forms are never valid, but they also don't have any errors. Which goes to Daniel's question: how exactly have you "preloaded" the form with data? Karen -- http://tracey.

Searching for Korean-Speaking Senior Django Developer for 3 months incl. free flight and accommodation in Seoul, Korea

2012-03-14 Thread Victor
**Requirements** * It is mandatory for candidates to speak Korean as their first or second language. * At least 3-5 years experience with Django/Python. * Python with Django, GeoDjango, South, pip, tddspry, webtests, virtualenv, fabric * UNIX; Fedora Linux, Ubuntu, SuSE, Solaris 10 * Experience wi

poll application

2012-03-14 Thread Yasmine El_Badry
when i add this line in admin.py "list_display = ('question', 'pub_date')" , i get an error -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send

poll application

2012-03-14 Thread Yasmine El_Badry
Hi I'm making a poll application using this tutorial https://docs.djangoproject.com/en/1.3/intro/tutorial02/ but when i add this line "list_display = ('question', 'pub_date')" to the admin.py , it gives me an error it worked once and when i continued the tutorial , it gave me error so i have to re

coping source code templates

2012-03-14 Thread Yasmine El_Badry
Hi, Please , I need to know full details about coping the baseline template from the source code to my own templates folder so that i can change the site name instead of "Django administration". i don't understand the meaning of not to forget the admin sub directory. Thank you. -- You received

Re: Displaying Updates

2012-03-14 Thread Babatunde Akinyanmi
What's your algorithm? On 3/13/12, coded kid wrote: > Hi Guys, how can I make users who are following each other view their > status update on their walls? In my project, users can follow and > unfollow each other but the problem I’m facing is that, both of them > can’t see each other statuses on

Re: sending django email via gmail

2012-03-14 Thread infinitylX
Guys when i try to use smtplib directly with next code every things works. #!/usr/bin/env python import smtplib def main(): print "sending throut gmail" username = "infinit...@gmail.com" password = "password" fromaddr = "infinit...@gmail.com" toaddr = "s...@other.email.com" msg

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread Thomas Guettler
Hey, I read your post some days ago and waited what other people say. But nobody answered. I posted a related question some time ago: Staging (dev,test,prod) in django. I explain my setup there. http://markmail.org/thread/wqwvordnlhyizwyp A related thread on django-dev: http://groups.google.co

Re: Post url incorrect on syndication

2012-03-14 Thread cubells
> cubells : > Hi all: In order to show my feeds blog I have a class: class BlogFeed(Feed): title = "MySite" description = "Some ramblings of mine" link = "/blog/feed/" def items(self): return Post.objects.all().order_by("-created")[:2] def item_title(self, item): return item.title def item_de