Re: Multiple SQLITE databases vs one BIG PostgreSQL database

2013-08-24 Thread Roman R
This applies to situations when lots of write requests are being made, right? Otherwise, SQLite can handle lots of concurrent connections. On Wednesday, May 4, 2011 7:40:18 AM UTC-5, bmbouter wrote: > > SQlite has issues with efficiently serving multiple database connections > simultaneously.

Re: pycharm constant error

2013-08-24 Thread Mike Dewhirst
On 25/08/2013 1:21pm, Patrick Larmann wrote: Hello, Thanks for your response. I reinstalled it but am still getting the error. How would I do a full revert? $ pip uninstall django followed by $ pip install django If you haven't got pip installed you need to get it.

Re: pycharm constant error

2013-08-24 Thread Patrick Larmann
Hello, Thanks for your response. I reinstalled it but am still getting the error. How would I do a full revert? Thx! On Saturday, August 24, 2013 11:02:38 PM UTC-4, Mike Dewhirst wrote: > > On 25/08/2013 11:56am, Patrick Larmann wrote: > > Hello guys, > > I really appreciate the help. I have a

Re: pycharm constant error

2013-08-24 Thread Mike Dewhirst
On 25/08/2013 11:56am, Patrick Larmann wrote: Hello guys, I really appreciate the help. I have a problem with Pycharm. I am getting this constant error in my runserver.py in both of my projects. I did not modify or touch the file, and yet the error persists. I attached a screenshot. It looks

Re: Import Error: cannot import name timezone

2013-08-24 Thread Patrick Larmann
Thanks fixed it? On Saturday, August 24, 2013 5:45:47 PM UTC-4, Robin Lery wrote: > > It should be > 'from django.utils import timezone' > and not > 'from django.db.utils import timezone' > > > On Sun, Aug 25, 2013 at 2:58 AM, Patrick Larmann > > wrote: > >> He Guys, >>

Re: MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Thomas Scrace
On Sunday, 25 August 2013, Brian Lee wrote: > [client] > 20 port= 3306 > 21 socket = /var/run/mysqld/mysqld.sock > 22 > 23 # Here is entries for some specific programs > 24 # The following values assume you have at least 32M ram > 25 > 26 # This was formally known as

Re: MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Brian Lee
[client] 20 port= 3306 21 socket = /var/run/mysqld/mysqld.sock 22 23 # Here is entries for some specific programs 24 # The following values assume you have at least 32M ram 25 26 # This was formally known as [safe_mysqld]. Both versions are currently parsed. 27

Re: MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Thomas Scrace
On Saturday, 24 August 2013, Brian Lee wrote: > So, my website, involving lots of database calls, works perfectly fine, > even after a reboot. > > However, attempting to connect directly via dbshell results in this error: > $ ./manage.py dbshell > mysql: unknown variable

MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Brian Lee
So, my website, involving lots of database calls, works perfectly fine, even after a reboot. However, attempting to connect directly via dbshell results in this error: $ ./manage.py dbshell mysql: unknown variable 'character-set-server=utf8' Attempting to figure out my version of mysql also

Re: Import Error: cannot import name timezone

2013-08-24 Thread Robin Lery
It should be 'from django.utils import timezone' and not 'from django.db.utils import timezone' On Sun, Aug 25, 2013 at 2:58 AM, Patrick Larmann wrote: > He Guys, > I am currently completing part 1 of the django tutorial and having trouble > with getting on of the

url navigation error

2013-08-24 Thread KTI
i have deployed my app on a VPS and can move to various pages of my app , e.g. myIP/django-bookmarks/login or myIP/django-bookmarks/ register.however, when i click on the tabs in the app itself (e.g. register tab), it takes me to myIP/register (without the 'django-bookmarks') and then says

url navigation error

2013-08-24 Thread KTI
i have deployed my app on a VPS and can move to various pages of my app , e.g. myIP/django-bookmarks/login or myIP/django-bookmarks/register.however, when i click on the tabs in the app itself (e.g. register tab), it takes me to myIP/register (without the 'django-bookmarks') and then says

Re: Advice on deploying multiple Django instances to single Apache server

2013-08-24 Thread Branko Majic
On Fri, 23 Aug 2013 09:50:49 -0700 Jon Dufresne wrote: > Hi, > > I am getting ready to deploy my Django application. This application must > serve several independent parties. In the past, I've done this with > multiple instances of a PHP application on the server. Is

Re: Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
Yes, this is typo. But I don't see there no edit button суббота, 24 августа 2013 г., 20:52:45 UTC+4 пользователь WongoBongo написал: > > Can you change the name of this file from > > newweb/polls/__init.py__ > > to > > newweb/polls/__init__.py > > That file name is not right. > > K > > > > On

Re: Django IndexError: list index out of range

2013-08-24 Thread Kelvin Wong
Can you change the name of this file from newweb/polls/__init.py__ to newweb/polls/__init__.py That file name is not right. K On Saturday, August 24, 2013 8:02:38 AM UTC-7, Oleg Gorjajnov wrote: > > I'm new to Django. > > > newweb/ > manage.py > newweb/ >

Re: Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
No, I have no problems with manage.py runserver or syncdb. Just now tried build this code in PyCharm and got the same error суббота, 24 августа 2013 г., 19:42:04 UTC+4 пользователь tom написал: > > > On 24 Aug 2013, at 16:02, Oleg Gorjajnov > wrote: > > And this is *not

my django admin page don't have the css when viewed over the apache server

2013-08-24 Thread Robin Lery
I just finished to serve my pages on the internet through apache. I can see my webpage nicely, but when I try the admin, the django admin page don't have the css with it, just the html page. But my webpage's css are displaying nicely. What am I missing? Please guide me. Thank you! my http.conf

Re: Django IndexError: list index out of range

2013-08-24 Thread Thomas Scrace
On 24 Aug 2013, at 16:02, Oleg Gorjajnov wrote: > And this is not my case. > > So what's wrong with that? It must work well without meta classes. > Do you get any problems when you do manage.py runserver or syncdb? I think your problem stems from trying to build

Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
I'm new to Django. Now I'm learning Django, using Writing your first Django app (version 1.5.2) tutorial. I'm a *Windows 7 * and *Sublime Text 2* user. Following this tutorial, I created a project called *newweb* in*C:\DjangoProjects

Re: New to django..

2013-08-24 Thread Harjot Mann
On Sat, Aug 24, 2013 at 4:19 PM, suraj shukla wrote: > Hi, I am very new to django framework.. > > I would appreciate If I can get some tutorial to start on windows operating > system... > Thanks! https://docs.djangoproject.com/en/1.5/

Help required using pre_fetched data in aggregate()

2013-08-24 Thread Patrick Joy
Hi all, Would appreciate some help on how to optimise the following piece of code. I have two models, "invoice" and "invoice item". The invoice total is calculated in invoice_total() by aggregation the sub_total and tax_total from all invoice_items (see code below). The problem I have is that

New to django..

2013-08-24 Thread suraj shukla
Hi, I am very new to django framework.. I would appreciate If I can get some tutorial to start on windows operating system... 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

Re: Template variables in translation blocks

2013-08-24 Thread Some Developer
On 24/08/13 14:56, Ariel Calzada wrote: you have to append strings first http://stackoverflow.com/questions/4386168/how-to-concatenate-strings-in-django-templates and then call trans 2013/8/24 Some Developer > I have a title

Re: Template variables in translation blocks

2013-08-24 Thread Ariel Calzada
you have to append strings first http://stackoverflow.com/questions/4386168/how-to-concatenate-strings-in-django-templates and then call trans 2013/8/24 Some Developer > I have a title and a header block which normally contain static text but > for some pages I

Template variables in translation blocks

2013-08-24 Thread Some Developer
I have a title and a header block which normally contain static text but for some pages I need to display some dynamic information contained in a template variable. So I might have the template variable: {{ app.name }} and the block code: {% block title %} {% trans "{{ app.name }}

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-24 Thread Thomas Scrace
On 23 Aug 2013, at 16:58, Daviddd wrote: > In my template I tried: > > {% for key, groups in queryset.iteritems %} > groups = {{ groups }} > {% for group_key, cols in groups.iteritems %} > cols = {{ group_key }} > {% for objs in cols %} >