Re: CBVs and logging a user

2013-06-03 Thread tony gair
my URLS_CONF points to my urls.py in my main project directory. The error only once I press the login button, the form is validated, the user then(correctly ) is authenticated then it fails with the error when I try to redirect it to a view. On Monday, June 3, 2013 2:45:09 PM UTC, tony gair wro

Best Pratice To Implement User Types

2013-06-03 Thread coded kid
I'm building a django project and I want to have free users and premium users. I've been hitting my head on the best way to implement this. Users will be able to login through the same login page and redirect to different pages after logging in based on their user type. My main challenge is th

Intergrating on Interswitch Webpay

2013-06-03 Thread coded kid
Hello, has anyone intergrate interswitch webpay on his or her django website before? I'm kinda confused on the doc, because in the docs, the tutorials is centered around ecommerce sites and I'm building an enterprise product and things like product_id, product_type don't exist. So I would like to k

sphinx migration: addint m2m field

2013-06-03 Thread Marcin Szamotulski
Hello, I need to add a m2m field to a model. So I did added it and then I wanted to use south to migrate the app. Since this app was already using south I run ./manage.py schemamigration sphinxdoc --auto It was successful though when I run ./manage.py migrate sphinxdoc The command got stalled

Re: python manage.py syncdb (using mysql database)

2013-06-03 Thread lordkyoshi2
I solved the problem, i still don't know how this could make the project bug but after i tryed every section alone i went back into settings.py i randomly found out when i set the port even if its to the right value it don't succes to find and creat table into the db but if i let django set

Re: postgresql 64 bit in python 32 bit

2013-06-03 Thread Alex Mandel
On 06/03/2013 10:23 AM, Kakar Arunachal Service wrote: Hi, I just uninstalled python 64 bit and reinstalled python 32 bit. So i have postgresql 64 bit in my system. Will it a problem later if i use 32 bit python in 64 bit postresql? Should be fine, Python psycopg2 sends SQL commands to postgre

postgresql 64 bit in python 32 bit

2013-06-03 Thread Kakar Arunachal Service
Hi, I just uninstalled python 64 bit and reinstalled python 32 bit. So i have postgresql 64 bit in my system. Will it a problem later if i use 32 bit python in 64 bit postresql? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

data not saving properlly

2013-06-03 Thread roopasingh250
views.py def what(request): ' ' ' ' ' ' ' ' if request.method == 'POST': ReportType.objects.filter(report=report).delete() checked_ones = [unicode(x) for x in subtype if unicode(x) in request.POST.keys()] for entry in checked_ones: r = ReportType()

Re: CBVs and logging a user

2013-06-03 Thread Bill Freeman
Does your setting.py configure ROOT_URLCONF correctly? On Mon, Jun 3, 2013 at 10:45 AM, tony gair wrote: > > I'm getting an error > > Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/ > Django Version: 1.5.1 > Exception Type: ImproperlyConfigured > Exception Value: > The in

Re: django , python and ides

2013-06-03 Thread Gladson SimplĂ­cio Brito
Would be the next to sublime text? http://brackets.io/ My opinion: yes! 2013/6/3 Marcin Szamotulski > Hi, > > If you want to learn a bit and use editor which will help you a lot my > advice would be to use vim. I use it for a long time, and I am very > satisfied with what it can. There are

Re: different admin form if adding a record

2013-06-03 Thread Christian Schulz
Hi Wim, my mistake I have a case of difference and the selection is a filter. So it should be no surprise that values which are not in this selection are NULL using the choice type. Thanks for scrutinize my intention Christian Am Montag, 3. Juni 2013 12:51:38 UTC+2 schrieb Wim Feijen: > > Hi C

Don't understand how to make 404 custom page work?

2013-06-03 Thread Pepsodent Cola
Hi, I have read and followed to this part of the tutorial, regarding writing my own 404 error page. https://docs.djangoproject.com/en/1.5/intro/tutorial03/#write-a-404-page-not-found-view But I can't make my 404 page work it only shows my custom (500 server error) page when I try it. 1.) I hav

Friendly browsing through categories

2013-06-03 Thread Daniele Procida
I am developing an application (for managing a variety of learning/training resources) each of which is catalogued in various ways - type, audience, topic(s), domain(s), cost, and so on. I have the Django application's models and structures built, and I have begun populating it with data, I'd l

Django Development Server Root URL...

2013-06-03 Thread huw_at1
Hi there, I've run into an issue whereby on production my Django project is accessed from a URL such as http://example.com/django_project/. Apache is configured to host the code under this URL since I do not want the entire site managed by the Django project. My problem is that when I run the

CBVs and logging a user

2013-06-03 Thread tony gair
I'm getting an error Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/ Django Version: 1.5.1 Exception Type: ImproperlyConfigured Exception Value: The included urlconf main.urls doesn't have any patterns in it my login form and view has been modified to work off email and p

Re: session_key varies

2013-06-03 Thread Tom Evans
On Mon, Jun 3, 2013 at 11:48 AM, Wim Feijen wrote: > Hi, > > Is it normal that a session_key varies when a user is not logged in? And if > so, should I then use request.COOKIES instead to store information in? > > In one of my projects, users can order a calendar and upload their own > photos, one

Re: IDE django with perforce

2013-06-03 Thread Nafiul Islam
If you want a free answer then Aptana Studio 3. Otherwise, PyCharm. On Thursday, May 30, 2013 11:23:11 AM UTC+6, Aswani Kumar wrote: > > hi guys, > > we are having problem with eclipse 3.8 with pydev perforce plugins on > ubuntu 13.04 > > *problem :* after using for few days or unexpected shutdow

Re: Deployment Conundrum

2013-06-03 Thread Wim Feijen
Hi Daniel, I would definitely recommend ordering a small VPS (costs: maybe 10 euros a month) and go from there. Wim On Sunday, 2 June 2013 09:37:11 UTC+2, Daniel Braun wrote: > > Hello, > I'm working in a non-profit organization. It's a design archive and > research institute based in Israel.

Re: different admin form if adding a record

2013-06-03 Thread Wim Feijen
Hi Christian, I recommend defining your own ModelForm and using that in the admin. For an example using a custom form, see: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form But why don't you want a choicefield in the admin then? Regards, Wim On Mon

session_key varies

2013-06-03 Thread Wim Feijen
Hi, Is it normal that a session_key varies when a user is not logged in? And if so, should I then use request.COOKIES instead to store information in? In one of my projects, users can order a calendar and upload their own photos, one for each month. In between, I like to keep track of which ph

Re: how to import excel file into django models?

2013-06-03 Thread Wim Feijen
Hi, Yesterday I did some research on this topic and I would like to recommend looking at examples on github, for example: https://github.com/edcrewe/django-csvimport or https://github.com/foreveryh/django-excel-import But I didn't use any of them, because I decided to re-use my own code. Wim

Re: django , python and ides

2013-06-03 Thread Marcin Szamotulski
Hi, If you want to learn a bit and use editor which will help you a lot my advice would be to use vim. I use it for a long time, and I am very satisfied with what it can. There are bunch of plugins which are very useful and lots of blogs how to make pythoning in vim even better. You can checko

Re: django , python and ides

2013-06-03 Thread Joey Chang
+1 sublime text2. efficient. 2013/6/3 tony gair > Got to say that this looks very promising. Theres also a Django plugin > too. dddjjjannnggooo! > > > On Saturday, June 1, 2013 9:01:00 PM UTC, Doug S wrote: > >> Hey I just ran into a new opensource Python IDE that looks interesting >> that

different admin form if adding a record

2013-06-03 Thread Christian Schulz
Hi , I'm a newbie in django and wondering what is the most easy way to change the "behavoir" if I add a record for a model. class AttributeMapping(models.Model): #In the standard admin view I like a CharField to see filled entries field = models.CharField(max_length=100) #In the add ca

Re: django , python and ides

2013-06-03 Thread tony gair
Got to say that this looks very promising. Theres also a Django plugin too. dddjjjannnggooo! On Saturday, June 1, 2013 9:01:00 PM UTC, Doug S wrote: > > Hey I just ran into a new opensource Python IDE that looks interesting > that wasn't around when I commited to Aptana > Ninja-ide > http: