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
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
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
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
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
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=(('
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 %}
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
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
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
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
> 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
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
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-
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
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-
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
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
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
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
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
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?
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
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
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
25 matches
Mail list logo