Re: I can't start a new project :(

2013-06-08 Thread Eimantas Stonys
I have installed virtualenv with Python 2.7 and it worked... :) On Saturday, 8 June 2013 22:57:41 UTC+3, Eimantas Stonys wrote: > > Hello people, > > I would really be very happy if someone could help me... I am using Ubuntu > 12.10. The default Python version is 2.7.3, but I got the 3.3.0 instal

Re: What are the best examples of the use of Dynamic Models? (real situation)

2013-06-08 Thread Russell Keith-Magee
On Sat, Jun 8, 2013 at 2:11 AM, enemytet wrote: > I learn dynamic models in Django but I don't understand when to use them. > > What are the best examples of the use of dynamic models? (real situation) > My advice - Don't. Ever. If you find yourself in a situation where you thing you need to use

Django 1.5 - Session request.session.set_expiry() raised 500 with datetime object.

2013-06-08 Thread XQ Kuang
Hi. The form of my app posted the expired_time with int timestamp just like 1371409201 and then converted it to datetime object. expire_datetime = > datetime.fromtimestamp(profile_form.cleaned_data['expired_time']) > request.session.set_expiry(expire_datetime) But the code raised 500 error.

RE: Deployment Conundrum

2013-06-08 Thread Sells, Fred
Once you get the configuration kinks worked out, using a script to copy a directory is brute force but easy. You can always download XAMP to get the apache/mysql stuff in windows. Also it's hard to argue the cost of a discount service like Webfaction against the labor to "roll your own" but

Re: Django & Ember

2013-06-08 Thread JJ Zolper
First off I want to say thanks a lot to Doug and Toran, The wealth of information you provided is just astounding. I wish I understood the dynamics as much as you seem to have progressed too. Really for me at this point I don't have much JS experience but I am under the impression that it is ve

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
Seems like it was a path issue. I put in the full path to the sqlite3 database file in my database settings, and it works now. For future reference - how is ./manage.py's path set up, and how apache's wsgi path is set up? Thanks, Brian On Saturday, June 8, 2013 3:10:26 PM UTC-4, Jason Arnst-Go

"no module named context_processor"

2013-06-08 Thread KTI
I'm getting this error when I try to run my project: ImproperlyConfigured at / :error importing request processor module social_auth.context_processors In the python interpreter, I can import 'Social_auth' but when I import 'context_processors', it says the same thing : no module named context

Re: I can't start a new project :(

2013-06-08 Thread Aaron C. de Bruyn
Sounds like Python 3.3 might not have been compiled with zlib support. You might take a look here: http://stackoverflow.com/questions/6169522/no-module-named-zlib -A On Sat, Jun 8, 2013 at 12:57 PM, Eimantas Stonys wrote: > Hello people, > > I would really be very happy if someone could help m

I can't start a new project :(

2013-06-08 Thread Eimantas Stonys
Hello people, I would really be very happy if someone could help me... I am using Ubuntu 12.10. The default Python version is 2.7.3, but I got the 3.3.0 installed and *both* of them work perfectly, I can run Python from terminal. Now I have installed Django (I think it installed correctly, becau

How to Keep Foreign Keys from updating

2013-06-08 Thread Brian Williams
So I have a model that looks somewhat like this: class ProductInfo(models.Model): manufacturer = models.ForeignKey product_type = models.ForeignKey product_name = models.ForeignKey product = models.CharField() sku = models.CharField() # bunch of other fields Basical

Keep Foreign Keys From Changing After Being Set

2013-06-08 Thread Brian Williams
So I have a model that looks somewhat like this: class ProductInfo(models.Model): manufacturer = models.ForeignKey product_type = models.ForeignKey product_name = models.ForeignKey sku = models.CharField(() -- You received this message because you are subscribed to the Google

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Jason Arnst-Goodrich
Does apache have write permissions on the DB folder(s). I know you'll get errors if you don't have permission for the db file itself AND the folder containing it. On Saturday, June 8, 2013 10:16:46 AM UTC-7, Brian Lee wrote: > > Very good guess... but I looked and in both manage.py and mysite/

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
Very good guess... but I looked and in both manage.py and mysite/wsgi.py, they both contain the line: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") (I was disappointed too - seemed like the right answer!) If it helps at all, I am using sqlite3, and I cloned the database fil

Re: Unable to locate django-admin.py

2013-06-08 Thread Branko Majic
On Sat, 8 Jun 2013 05:36:06 -0700 (PDT) Satinderjit Singh wrote: > I am beginner and trying to get start new project according to manual > I had installed the latest version of Django and currently using ubuntu > 13.04 . > When i try to run django-admin.py startproject mysite > > Terminal show

Re: django-admin.py

2013-06-08 Thread Александр Соболев
I think, you should activate virtualenv. (example: source /bin/activate). If it's ok and you have the same problem, you should install django (with activated virtualenv) pip install django 2013/6/8 Satinderjit Singh > I an a beginner in Django trying to follow manual . But i m getting message >

RE: Unable to locate django-admin.py

2013-06-08 Thread Anshum Verma
Hi, It seems like a problem with your system PATH variable. Can you try /usr/sbin/django-admin.py. Regards, Anshum Sent from my Windows Phone -- From: Satinderjit Singh Sent: 08-06-2013 20:07 To: django-users@googlegroups.com Subject: Unable to locate django-admin.p

Re: Unable to locate django-admin.py

2013-06-08 Thread Nigel Legg
on my set up (windows) it is in c:\python27\Lib\site-packages\django\bin\. Regards, Nigel Legg 07913 740972 http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 8 June 2013 13:36, Satinderjit Singh wrote: > I am beginner and trying to get start new project according to man

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Sergiy Khohlov
looks like you are using other settings.py for .wsgi connection Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jun 8, 2013 at 7:44 AM, Brian Lee wrote: > I'm trying to set up an existing project on a new hosting provider > (webfaction). The site is up and running, except for any

Unable to locate django-admin.py

2013-06-08 Thread Satinderjit Singh
I am beginner and trying to get start new project according to manual I had installed the latest version of Django and currently using ubuntu 13.04 . When i try to run django-admin.py startproject mysite Terminal shows this error: ~$ django-admin.py startproject mysite django-admin.py: command n

On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
I'm trying to set up an existing project on a new hosting provider (webfaction). The site is up and running, except for any pages which require a database query - those pages fail to load and the backend shows various kinds of DatabaseError: no such table, depending on which database query the

django-admin.py

2013-06-08 Thread Satinderjit Singh
I an a beginner in Django trying to follow manual . But i m getting message ~$ django-admin.py startproject mysite django-admin.py: command not found -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Inlines in the "forward direction" for OneToOneFields

2013-06-08 Thread Bertrand Bordage
Hello, This is a tricky question that's been bothering me for over a year. I'm working with french historians on a project called Dezède (source on github ). For several models they need to specify one or two "spatiotemporal coverage(s)":

Re: database -> model -> charting

2013-06-08 Thread tony gair
After trying this I find a problem with the types it can use. For example it does not seem to like BigIntegerField unless there is something else I am doing wrong. Thinking about it, maybe I am letting chartit do too much for me but I do like the idea of something doing the hard thinking for me

Re: Django foreing keys joins

2013-06-08 Thread Àlex Pérez
Thanks!, that query is making the join, and i wan't tho make a faster query, Joins ar not slow but if i can avoid it better. >>> print Counter.on_medicos.filter(loc_id__isnull=True).only('id').query My solution was: instead of put null values on empty relations, put a 0 value.. It work's very go