Cache witin a single transaction / session ?

2013-05-23 Thread brycenesbitt
Does there exist a lightweight cache option for django which persists data in a single session. For example: {{gallery.tiles.count}} item{% if gallery.tiles.count != 1 %}s{% endif %} Produces two count() operations on the underlying database. Is there a way to make that one operation? -- You

Re: Integrating NoSQL-persisted custom Models

2013-05-23 Thread Russell Keith-Magee
On Fri, May 24, 2013 at 1:26 PM, Kurtis wrote: > A project I am working on uses a hybrid SQL/NoSQL data backend. > > I'd like to build custom Models which "behave" exactly like the > traditional Django Models but are tied into my MongoDB backend. > > Where should I start to make sure I cover all

Integrating NoSQL-persisted custom Models

2013-05-23 Thread Kurtis
A project I am working on uses a hybrid SQL/NoSQL data backend. I'd like to build custom Models which "behave" exactly like the traditional Django Models but are tied into my MongoDB backend. Where should I start to make sure I cover all bases? Implementing my own instance Model? I imagine I'l

Problem with ~ in url prefix

2013-05-23 Thread Hordur Heidarsson
Hello, I'm trying to deploy django in my public_html directory which is served via http://servername/~username/ by mod_wsgi in apache. However, I'm running into some errors in the admin interface: Environment: Request Method: GET Request URL: https://192.168.0.2/~hordur/django/admin/si

Re: ImportError at/ No module name

2013-05-23 Thread Rainman Tai
Hi donarb, Thx a lot. I got the same problem and it's fixed now. On Tuesday, December 25, 2012 10:16:23 AM UTC-8, donarb wrote: > > On Tuesday, December 25, 2012 4:29:22 AM UTC-8, djangobie wrote: >> >> I appreciate your response. >> The __init__.py is there in the app folder (yes, I created the

Inlines problem under admin: on production server I'm unable to add more lines in the inline section

2013-05-23 Thread Victor
In admin.py I have ... class MovimentomagInline(admin.TabularInline): model=Movimentomag extra=3 save_on_top=True class MovimentoOperazioneOption(admin.ModelAdmin): list_display = ('segno', 'data_movimento', 'paziente','operatore') fields=(('

Display each language in its own language.

2013-05-23 Thread Cody Scott
I would like the language selector to display each language in its own language. So for example English will always be displayed as 'English'. Even if the current language is French it will still be 'English' and not Anglais. {% csrf_token %} {% for lang in LANGUAGES %}

Re: Multi Client Django System

2013-05-23 Thread Frank Bieniek
Hi Richard, How do you ( a ) get the system to call your "by user" query? *a)* in your views you query manually - see below - organization_list And ( b ) how do you get the system to send in the current "user"? the magic is in the permalink *get_slugged_organization_documents_url* in the de

Re: IdeaScale-alike DJango applications

2013-05-23 Thread Daniele Procida
On Thu, May 23, 2013, Russell Keith-Magee wrote: >On Wed, May 22, 2013 at 6:53 PM, Daniele Procida wrote: > >> Are there any Django applications that do the same thing as < >> http://ideascale.com>? >> >> IdeaScale basically seems to be a way for users to submit proposals, and >> have them voted

Re: No module named wsgi

2013-05-23 Thread Sandeep kaur
On Thu, May 23, 2013 at 8:29 PM, Luggaz wrote: > I don't know what I dd but it seems to work now! > mod wsgi installation could have also solved he purpose, using this command : $sudo apt-get install apache2 libapache2-mod-wsgi -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wor

DeserializationError while loading a datamigration for auth data

2013-05-23 Thread Alexandre Provencio
Hello guys, I'd like to auto populate my app recently converted to south, with permission group and user data. However, after generating a fixture and calling it from the datamigration I'm getting this error. I've put the steps I'm taking detailed here http://stackoverflow.com/questions/16470492/de

Re: Multiprocess and Global State

2013-05-23 Thread Roberto De Ioris
> I all, > > Environment: > - Django 1.5.1 > - mongoengine 0.8.1 > > I use mongoengine to store and manage user accounts authentication. > > it work fine with the development server and uwsgi : only if I use a > single > process or thread mode. > > If i use more than 1 process, sometime ( when i r

Re: No module named wsgi

2013-05-23 Thread Luggaz
I don't know what I dd but it seems to work now! On Thursday, May 23, 2013 11:41:04 AM UTC+2, Luggaz wrote: > > Good day, > > I am having a problem making my website live. > It works fine on the development server and I do get(http:127.0.0.1:8000) > running but when I make it live I get an error

Re: Django tutorial - change history 24h time format?

2013-05-23 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-USE_L10N 2013/5/23 Pepsodent Cola > Hi, > > I'm reading Part 2 and this chapter *"Explore the free admin > functionality"* of the Django tutorial. > > https://docs.djangoproject.com/en/1.5/intro/tutorial02/#explore-the-free-admin-

Django tutorial - change history 24h time format?

2013-05-23 Thread Pepsodent Cola
Hi, I'm reading Part 2 and this chapter *"Explore the free admin functionality"*of the Django tutorial. https://docs.djangoproject.com/en/1.5/intro/tutorial02/#explore-the-free-admin-functionality I have a question regarding the *"Change history"* part where you can see a screenshot at the end

Re: Testing with complex database setups

2013-05-23 Thread Drew Ferguson
Hi If I understand you correctly, you want to be able to initialise your database to a known state; https://docs.djangoproject.com/en/1.5/howto/initial-data/ is what you want I think - it also contains a link to this https://docs.djangoproject.com/en/1.5/topics/testing/overview/#topics-testing-

Multiprocess and Global State

2013-05-23 Thread christophe de saint leger
I all, Environment: - Django 1.5.1 - mongoengine 0.8.1 I use mongoengine to store and manage user accounts authentication. it work fine with the development server and uwsgi : only if I use a single process or thread mode. If i use more than 1 process, sometime ( when i refresh my applicat

Testing with complex database setups

2013-05-23 Thread Jani Tiainen
Hi, I've product that uses complex setup scripts - tens of SQL scripts that creates tables, views, complex triggers, grants permissions and such and finally populates database with some pre-data. So how I should proceed with unit testing with database like that, since some operations rely heav

Filter

2013-05-23 Thread Hélio Miranda
Hi I have the following code, in which the player have a reference to the club: *class Club(mongoengine.Document):* *ClubName = StringField()* * * *class Player(mongoengine.Document):* *PlayerName = StringField()* *PlayerAge = IntField()* *PlayerClub = fields.ListField(fields.Refere

Re: environment variables in virtualenv's postactivate using mod_wsgi

2013-05-23 Thread Steffen Zieger
On 22.05.13 18:41, Charles Mulder wrote: > Hi, Hi! > Am I doing something wrong? Any suggestions or recommendations are welcome. This might help you: http://drumcoder.co.uk/blog/2010/nov/12/apache-environment-variables-and-mod_wsgi/ > Kind regards, > C Kind regards Steffen -- You received t

Re: problem with ImageField does not show me the picture on a template

2013-05-23 Thread Ronny Villarroel Mendoza
Thanks a lot. I do the following steps: aggregate an alias to the virtual host of my site: Alias /media /var/www/fourweb/media/ and modified: settings.MEDIA_ROOT = '/var/www/fourweb/media/' settings.MEDIA_URL = 'http://fourweb.com/media/' it works!. Cheers Ronny El martes, 21 de mayo de 2013

Re: theme generator

2013-05-23 Thread Derek
Not sure it is being maintained, but may be a good starting point: http://www.djangoslingshot.com/ Also available is: https://github.com/ilblackdragon/django-themes On Tuesday, 21 May 2013 23:19:30 UTC+2, Kakar wrote: > > Hi! > Is there any kind of theme generator or css generator for django?

Looking for beta testers for new Django hosting

2013-05-23 Thread Michael Anckaert
Hello everyone We are developing a new Python/wsgi hosting solution and are looking for beta testers. The solution we are developing will focus on ease of deployment (git integration, management of application versions, ...) Beta testers will receive a free instance on our platform. Don't expect

No module named wsgi

2013-05-23 Thread Luggaz
Good day, I am having a problem making my website live. It works fine on the development server and I do get(http:127.0.0.1:8000 ) running but when I make it live I get an error saying there's no module named wsgi. I am using a virtualenv and when I activate virtualenv(locally) and import dja

View pictures from the template via models.FilePathField

2013-05-23 Thread Federico Erbea
I'm not sure this is the correct method to use, so I'm open to suggestions. Practically I want to display the image retrieving the path where they are saved from the database. In a class in models.py I have inserted: locandina = models.FilePathField( path = "C:/Users/Federico.Erbea/Google Drive