FieldError, But Only In Production

2014-02-12 Thread Rich Jones
Hey guys! I've got a real stumper here. Pulling my hair out over this one, would really appreciate some options! Anywhere in my application that calls user.get_profile() causes a FieldError.. but only in production. I'm using WSGI and Apache. When I run locally with: python manage.py run

Re: how to make https work in django REST framework

2014-02-12 Thread zhenwu he
Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to redirect this http call to where? and where

Re: Django Admin Page not working

2014-02-12 Thread Puthi SUM
I have tried to do that already but it still no use. I am in Development mode, and according to Django's documentation, it should work without I have to do anything. Also thank for your answer. On Wednesday, February 12, 2014 4:19:50 PM UTC+7, Puthi SUM wrote: > > Hi Developers, > >I am new

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Russell Keith-Magee
That kind of comment is completely unnecessary. Please keep a civil tone or I'll start banning accounts from posting. Yours, Russ Magee %-) On Wed, Feb 12, 2014 at 11:00 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > As per usual, I think you're missing

Re: Django Tutorial 5 - First Tests

2014-02-12 Thread Jonathan Baker
You're correct in thinking that tests use a test database that is independent of your formally defined project database. Without knowing exactly which Django tutorials you are referring to, I can only assume that perhaps you: 1) Have defined initial_data.json fixtures 2) Have defined other fixture

Django Tutorial 5 - First Tests

2014-02-12 Thread Paul Sermon
So I'm working my way through the Django tutorials, and have got as far as the view tests. It seems that when running the test client, rather than returning data from an empty test database (is this what is meant to happen?) it is returning polls from the existing database, which has the polls

Re: 'Model' object has no attribute 'replace'

2014-02-12 Thread Erik Cederstrand
Den 12/02/2014 kl. 22.31 skrev strelnikov : > did anybody solve this kind of inconsistency? > > > https://code.djangoproject.com/ticket/22033#ticket There's zero information there. Post your model code if you want help. Erik -- You received this message because you are subscribed to the Goog

Re: 'Model' object has no attribute 'replace'

2014-02-12 Thread Lucas Klassmann
Did you can show that you tryna do? When this happens? By the message you be passing a Model as text parameters of the escape function. Greetings. On Wed, Feb 12, 2014 at 7:31 PM, strelnikov wrote: > did anybody solve this kind of inconsistency? > > > https://code.djangoproject.com/ticket/220

'Model' object has no attribute 'replace'

2014-02-12 Thread strelnikov
did anybody solve this kind of inconsistency? https://code.djangoproject.com/ticket/22033#ticket -- 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+u

Re: Django newbie frustrated

2014-02-12 Thread Lucas Klassmann
I think that the best way for learn django is get a simple code editor and use command line. No use IDE yet, until you feel reliance with django. Greetings. On Wed, Feb 12, 2014 at 5:59 PM, Sean Luke <192.sean.l...@gmail.com> wrote: > It gives me an error saying unresolved reference. I will t

Re: Django newbie frustrated

2014-02-12 Thread Sean Luke
It gives me an error saying unresolved reference. I will try the django tutorial. -- 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...@goog

Re: Django newbie frustrated

2014-02-12 Thread Lucas Klassmann
Sean, When you read a tutorial about django, check the version you using and version used on the tutorial. Check again: http://www.jetbrains.com/pycharm/quickstart/django_guide.html This guide is for *1.4.3* and you using django *1.6.2* Always check the version, sometimes has some incompatibili

Re: Saving a large queryset to a M2M field

2014-02-12 Thread Erik Cederstrand
Den 12/02/2014 kl. 19.52 skrev Lucas Roesler : > Hi, I am currently having trouble saving a large queryset to a M2M field > (approx. 100k objects). The queryset is being generated by the admin list > view and I am passing it to the add view by storing the list of primary keys > in the session.

Re: Django newbie frustrated

2014-02-12 Thread Lucas Klassmann
Try change *polls* to *MyDjangoApp.polls* in *INSTALLED_APPS*. -- Lucas Klassmann Desenvolvedor de Software Email: lucasklassm...@gmail.com Web site: http://www.lucasklassmann.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django newbie frustrated

2014-02-12 Thread Sean Luke
models.py from django.db import models # Create your models here. class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_le

Re: Django newbie frustrated

2014-02-12 Thread Sean Luke
Here is settings.py """ Django settings for MyDjangoApp project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the p

Re: Django newbie frustrated

2014-02-12 Thread Lucas Klassmann
Hi Sean! You has added *polls* inside of *INSTALLED_APPS* in the *settings.py*? You can show me other source files? Greetings On Wed, Feb 12, 2014 at 5:13 PM, Sean Luke <192.sean.l...@gmail.com> wrote: > Here is the screenshot of my file structure and admin.py > > > On Wednesday, February 12,

Home page not loading when using domain name

2014-02-12 Thread bhudspeth60
I am using Django 1.5 and Django-CMS 2.4.2 When I use my basic domain name (ex. www.siteName.edu) I get a page that is other than the intended home page (but instead another page further down the list as viewed in the Django Admin). I have to use " www.siteName.edu/home/" to get my home page to

Re: AssertionError: u'ns.example.com.' == 'ns.example.com.' ?

2014-02-12 Thread Marc Aymerich
On Wed, Feb 12, 2014 at 8:01 PM, Larry Martell wrote: > On Wed, Feb 12, 2014 at 1:56 PM, Marc Aymerich wrote: >> I'm running my Django app tests and I'm getting a random and very >> annoying assertion error >> >> == >> FAIL: test

Re: AssertionError: u'ns.example.com.' == 'ns.example.com.' ?

2014-02-12 Thread Larry Martell
On Wed, Feb 12, 2014 at 1:56 PM, Marc Aymerich wrote: > I'm running my Django app tests and I'm getting a random and very > annoying assertion error > > == > FAIL: test_rest_dns_delete > (orchestra.apps.dns.zones.tests.functional_

Re: AssertionError: u'ns.example.com.' == 'ns.example.com.' ?

2014-02-12 Thread Nevio Vesic
well one is Unicode and one is not. You see the u' in front of first ns.example... How about: self.assertNotEqual(unicode(self.zone.name_server), unicode(soa[4])) I'd even say that you can try without unicode() wrap. -- WARNING !!! This email message is for the

Saving a large queryset to a M2M field

2014-02-12 Thread Lucas Roesler
Hi, I am currently having trouble saving a large queryset to a M2M field (approx. 100k objects). The queryset is being generated by the admin list view and I am passing it to the add view by storing the list of primary keys in the session. In the add view I set the M2M form field initial valu

AssertionError: u'ns.example.com.' == 'ns.example.com.' ?

2014-02-12 Thread Marc Aymerich
I'm running my Django app tests and I'm getting a random and very annoying assertion error == FAIL: test_rest_dns_delete (orchestra.apps.dns.zones.tests.functional_tests.tests.RESTBind9MasterBackendTest) --

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2014-02-12 Thread Maksym Sokolsky
You can install to virtualenv localy like this: "easy_install http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-pyx.x-pg9.0.3-release.exe"; - thanks to @ig0774 from http://stackoverflow.com/a/5383266 On Sunday, April 14, 2

Re: heroku better for django?

2014-02-12 Thread Malik Rumi
Thanks to both of you. Clearly both Heroku and AWS are more welcoming to Django than GAE. I wasn't looking forward to running the server myself, but the documentation on AWS as well as Glyn's post make it seem a little less intimidating, so I am going to take a test flight on AWS and see what h

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Feb 12, 2014 at 4:02 PM, Ethan Lowry wrote: > Hi Cal, first off thanks for the detailed response. > > Regarding your second reply I'm not sure I understand the question? The > csrf issue I described *is* the reason I was unable to use POST requests, > which is what I originally wanted to

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Ethan Lowry
Hi Cal, first off thanks for the detailed response. Regarding your second reply I'm not sure I understand the question? The csrf issue I described *is* the reason I was unable to use POST requests, which is what I originally wanted to do. I will look in to all the options in the links posted an

Re: Django Admin Page not working

2014-02-12 Thread Roberto López López
_Probably_ you will have to execute: $ python manage.py collectstatic On 12. feb. 2014 10:19, Puthi SUM wrote: Hi Developers, I am new to Django App Development. My part-1 training is completed successfully. But when i go for part-2, my Admin page is not working properly. i.e., Admin pa

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Feb 12, 2014 at 3:17 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Ethan, comments in-line; > > > On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry wrote: > >> Hi there, >> >> I have a bare-bones Django app set up and am planning on using the built

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Mironiuc Sergiu
> > I don't use a logger yet. > But I'm going to configure one... and I'll be back with details. Thanks! -- 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

Re: Something like booktype

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Could you clarify your question? If you're asking "are there are alternatives to django booktype?" - I've had a quick look on Google and didn't find any immediate matches, but others may know. Cal On Wed, Feb 12, 2014 at 1:15 PM, AlSayed Gamal wrote: > Dears, > > I want to do something like

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi Ethan, comments in-line; On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry wrote: > Hi there, > > I have a bare-bones Django app set up and am planning on using the built > in Django user auth to manage log in and registration via the Android app > I'm developing. > > I've tried this a number of

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Thomas Leo
>> Obviously this isn't an ideal or secure way of doing things and what I originally tried was sending a POST request, but this gets denied with a 403 and a message about not having a CSRF cookie attached. I haven't developed anything with Android but it sounds like you need to send a CSRF in y

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Thomas Leo
Can you give a little more info on your application stack? On Wednesday, February 12, 2014 9:08:17 AM UTC-5, Mironiuc Sergiu wrote: > > > I have a problem. I moved a django site from one hosting to godaddy. On > the GoDaddy hosting it doesn't display in the admin page the site models. > > setting

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Can you give us a bit more info about what is happening? Do you have any error logs or stacktrace? Also the urls.py code is malformed, you might want to consider using pastebin to paste the code instead. Cal On Wed, Feb 12, 2014 at 2:08 PM, Mironiuc Sergiu wrote: > > I have a problem. I moved

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Good point, perhaps it might even be worth having another entry in the "usingthemailinglist" wiki page. I'll put it on my todo list :) Cal On Wed, Feb 12, 2014 at 9:32 AM, Avraham Serour wrote: > it is under my impression that recruiters like these don't read replies to > the list, since they'

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
As per usual, I think you're missing the point here Tom. Cal On Wed, Feb 12, 2014 at 9:55 AM, Tom Evans wrote: > On Tue, Feb 11, 2014 at 10:19 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > Hi Marsh, > > > > Could you have a read of this thread; > > > https://groups.google.com/forum/#!ms

django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Mironiuc Sergiu
I have a problem. I moved a django site from one hosting to godaddy. On the GoDaddy hosting it doesn't display in the admin page the site models. settings code: INSTALLED_APPS = ('django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.co

Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Ethan Lowry
Hi there, I have a bare-bones Django app set up and am planning on using the built in Django user auth to manage log in and registration via the Android app I'm developing. I've tried this a number of ways and can, for example, log in by sending a GET request such as ([url]/login?username=[us

Re: Translated URL's

2014-02-12 Thread Felipe Mesquita de Oliveira
Michel, Thanks again, for your availability in helping me. Actually, that was almost what I have been doing, except that I was not working with '( option1 | option2 )' regex. I was adding one language each line, but works the same. Like this: url(_(r'^planos/$'), WebSite

Re: Using a paginator with two models in the same view

2014-02-12 Thread Fabio Caritas Barrionuevo da Luz
Please, if you can solve, create a post on a blog or a gist.github.com to resolution, and send to this topic. This can be useful for other people. XD -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Something like booktype

2014-02-12 Thread AlSayed Gamal
Dears, I want to do something like booktype in django. Any similar django app ? Thanks -- AlSayed Gamal www.egamal.com (Down) @AlSayedGamal facebook.com/AlSayedGamal *LinkedIn*

Re: Checkboxes collection instead of a multiple select

2014-02-12 Thread Tom Evans
On Wed, Feb 12, 2014 at 11:56 AM, Jonathan Querubina wrote: > Tom, > > Thanks for the feedback! > > This can be used on the admin form? > Absolutely, simply override the widget for that specific field when you register your ModelAdmin for that model: https://docs.djangoproject.com/en/1.6/ref/con

Re: Checkboxes collection instead of a multiple select

2014-02-12 Thread Jonathan Querubina
Tom, Thanks for the feedback! This can be used on the admin form? On Feb 6, 2014, at 12:48 PM, Tom Evans wrote: > On Thu, Feb 6, 2014 at 11:15 AM, Jonathan Querubina > wrote: >> Hi guys, >> >> How do i show a collection of checkboxes instead of a multiple select? >> >> Thanks! > > Sounds l

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Tom Evans
On Tue, Feb 11, 2014 at 10:19 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Hi Marsh, > > Could you have a read of this thread; > https://groups.google.com/forum/#!msg/django-users/q64B4chm1ho/cCp_Xvxu41oJ > > It has some tips/advice on what to put into a job description, it helps keep > the lis

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-12 Thread Avraham Serour
it is under my impression that recruiters like these don't read replies to the list, since they're not interested in the list but just in post rights, they may subscribe and opt to not receive emails. so all these replies and suggestions on how to improve them are between ourselves and never get to