Re: How To Activate Django Server.

2015-06-26 Thread Steve Burrus
we;ll here is the error message that I get when I try to install django in the virtual env. : "C:\Users\SteveB\Desktop\myenv>.\Scripts\activate (myenv) C:\Users\SteveB\Desktop\myenv>pip install django Fatal error in launcher: Job information querying failed" What's the problem anyway? On Fri, Ju

Re: 想用中文说清楚:我在远程工作机服务器上建立了django框架,想启动web server ,启动成功,但是无法打开127.0.0.1:8000 ,中间端口转接该怎么做

2015-06-26 Thread Alvie Zhang
你得确认你的机器能否访问A2,如果不能的话,就不太好弄了。如果能,按照楼上的说法,startserver时指定参数 0.0.0.0:8000,然后在浏览器输入A2的IP:8000就能访问了。 猜测贵司是通过登录类似堡垒机之类的登录服务器吧,我所在公司只有登录线上服务器才会这么干... 在 2015年6月11日星期四 UTC+8下午8:33:06,dur...@corp.netease.com写道: > > 我在远程工作机服务器上建立了django框架,想启动web server ,启动成功,但是无法打开127.0.0.1:8000 > ,中间端口转接该怎么做? > 我用pc在办公室登录

Django 1.4 (LTS) end of life?

2015-06-26 Thread Ned Horvath
Originally 1.4 was supposed to end support with the release of 1.8; earlier this year that was extended 6 months to October 1, 2015. But as of yesterday, the revised roadmap shows 1.9 planned for "December" rather than the previous target of October 2. I don't know whether to pressure the devel

Re: How To Activate Django Server.

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 4:56 PM, Steve Burrus wrote: > I AM able to create a new virtual env. but I gfet this error message when I > try to create a new project! have you installed django in this virtualenv? -- Javier -- You received this message because you are subscribed to the Google Grou

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-26 Thread Henri
Some more details: I'm using Django 1.6. When I debug the site, I see that users.admin.CustomUserAdmin is scanned, when starting the App. But when loading the UserChangeForm the 'get_fieldsets' method from django.contrib.auth.admin.UserAdmin is used. The custom UserChangeForm looks kike this:

Re: How To Activate Django Server.

2015-06-26 Thread Steve Burrus
I AM able to create a new virtual env. but I gfet this error message when I try to create a new project! Do i possibly have to start the DjANgo server first then try to create the new project? It's so dumb that I very recently knew how to do all of this fairly easily but not now. What am I doing

Re: help with e-library

2015-06-26 Thread memilanuk
On 06/26/2015 04:55 AM, Mane Said wrote: Dear all ,, I am new user for django and web programming I want to program e-library application which basically have some field related to books details and bar code and finally some information about people who gone to use it where is the best place t

Re: can i use sqlite for big project?

2015-06-26 Thread Thomas Lockhart
On 6/25/15 7:08 AM, Arindam sarkar wrote: i need to develop a job portal . is there any problem if i use sqlite ? coz i am having problem to setup mysql or postgresql . please help. As others have suggested, use Postgres from the start. Spend a few minutes to understand the setup; it will be wor

Re: can i use sqlite for big project?

2015-06-26 Thread Alon Nisser
Using sqlite would bite you in many way, not really transactional for example, some features (such as certain variation of ```distinct```) not supported etc. Use Postgresql, If you find it hard to setup you can use RDS (that has amazon web services offer of postgresql) or heroku postgresql - bo

Re: @transaction.atomic ignored?

2015-06-26 Thread Stephen J. Butler
@transaction.atomic will only look at the default database. Since you're using multiple ones I think you want something like: @transaction.atomic(using=DB1) @transaction.atomic(using=DB2) def process_all(): # On Fri, Jun 26, 2015 at 10:27 AM, Lene Preuss wrote: > Hi, > > I want to writ

@transaction.atomic ignored?

2015-06-26 Thread Lene Preuss
Hi, I want to write a large number of model instances to DB, in a multi-database setup. The way I am doing this is essentially: @transaction.atomic def process_all(): for record in Model.objects.using(DB1).all(): process_one(record) def process_one(record): do_something_with(re

Re: can i use sqlite for big project?

2015-06-26 Thread Andrew Farrell
Arindam, Here are two routes you should consider: 1) Develop your site using SQLite until you get to the point of needing something more performant under heavy loads, then switch over. By the time you switch, you will have developed a deeper understanding of Django and also will have demonstrated

Displaying Calculated and Modified field names in a Django Model?

2015-06-26 Thread Heather Johnson
I am creating reports in my MySQL backend. I have created a database view that only displays the fields I need: id, Position, Fault_Count. Postion and Fault_Count are modified field names from the Select statement. Django isn't liking this too much and keeps throwing an Operational Error (1054).

Re: can i use sqlite for big project?

2015-06-26 Thread dk
as my understanding SQLite will only let you do one transaction at the time. and cant handle big volume of inputs at once. is great and easy since comes already as part of python if you are doing something for your local team. like a bug report or something that you know that not every one wil

Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Michael Greer
BTW, it turned out to be a cookie parsing error in python for us, only recently solved, in which Python incorrectly balked at parsing the "[" character in cookie values and then threw out the remaining cookies. This has been fixed in 2.7.10 (and new versions of 3) but is not yet in Debian stable.

Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Wim Feijen
Thanks Gergely, That solved it for me. Wim On Sunday, 31 May 2015 09:58:32 UTC+2, Gergely Polonkai wrote: > > I had this error when I had two Django application with the same domain > and both with the same (default) CSRF cookie name. Changing the cookie name > to something different solved

Re: help with e-library

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 6:55 AM, Mane Said wrote: > where is the best place to start definitely, the Django tutorial. your project sounds like a very straightforward database application. after finishing the tutorial you might easily model your concepts, or you can always ask specific questions

Re: Help me develop a Job Tracker (?)

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 3:01 AM, Softeisbieger wrote: > I am uncertain how to handle different work flows, though. The user should > be able to define these 'on the fly' and I have no idea how to express this > in terms of django. What I know about a workflow: there's a thing known as a workflow

Re: ValueError: Dependency on unknown app

2015-06-26 Thread Filipe Ximenes
Did you add "cw_auth" to your "INSTALED_APPS"? On Thu, Jun 25, 2015 at 11:32 PM, James Schneider wrote: > Have you tried cw_auth.models.AppUser as the value for AUTH_USER_MODEL? > > -James > On Jun 25, 2015 12:45 PM, "MamEshe5minPlz" > wrote: > >> I'm trying to use custom User model. Created ap

help with e-library

2015-06-26 Thread Mane Said
Dear all ,, I am new user for django and web programming I want to program e-library application which basically have some field related to books details and bar code and finally some information about people who gone to use it where is the best place to start and if you have any ideas plea

Re: Model cache problem

2015-06-26 Thread dragon
On 06/26/2015 09:21 AM, jarmovanlen...@gmail.com wrote: I think you've used choices=Apple.objects.all, instead of choices=Apple.objects.all(). With the added parentheses, the 'all()' is evaluated each time the form is loaded. Only using 'all' is once evaluated and then used over and over. T

Help me develop a Job Tracker (?)

2015-06-26 Thread Softeisbieger
Hi, maybe first, a few things about me: I have no experience in websites / django. I have a background in scientific computing and I especially enjoy using python. I did some GUI programming in .NET and SQL. So here is my project: I want to develop a 'Job Tracker' (approx. like an Issue Tracke

Re: Model cache problem

2015-06-26 Thread jarmovanlenthe
I think you've used choices=Apple.objects.all, instead of choices=Apple.objects.all(). With the added parentheses, the 'all()' is evaluated each time the form is loaded. Only using 'all' is once evaluated and then used over and over. Jarmo On Thu, Jun 25, 2015 at 9:49 PM Vijay Khemlani wrote: >

Re: [SOLVED] Model cache problem

2015-06-26 Thread dragon
On 06/26/2015 08:13 AM, dragon wrote: On 06/25/2015 09:49 PM, Vijay Khemlani wrote: Are you using a ModelChoiceField? https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield Or a normal ChoiceField setting the choices manually? I am using normal Chice field and yes i'm setting

Re: new installations tryout problem

2015-06-26 Thread Mike Dewhirst
On 26/06/2015 3:24 PM, Elim Qiu wrote: Installed django recently, followed the django tutorial pdf to some where arround page 20. But got problems... It's on ubuntu 14.04, I have ipython installed and the following command some how brings up ipython. And it will raise exception for command Quest