time problem in django, maybe related to daylight savings time adjustment

2013-10-04 Thread Zhou Heng
Please look at the image below: The time in django is one hour later than the actual time (18:43 vs 19.43). I guess it may be because django forgot to hangle daylight savings time

time problem in django, maybe related to daylight savings time adjustment

2013-10-04 Thread Zhou Heng
Please look at the image below: The time in django is one hour later than the actual time (18:43 vs 19.43). I guess it may be because django forgot to hangle daylight savings time

What is the right location for my django translation files?

2013-10-04 Thread Mario Osorio
Hi, I'm giving my first steps with python/django/mezzanine so please bear with me. I modified a translation file of the mezzanine's blog application and compiled it OK. Mind you: I literally only modified a couple of words and left the rest intact. The only place I found out I could place

on-site search pages: soft 404's and duplicate title / meta tags

2013-10-04 Thread info rekal
We are running Django 1.5.1 with haystack 1.2.7 / xapian 1.2.15 #1.) >From google webmaster tools, it looks like we've been having a steady increase in soft 404 errors; We utilize xapian and haystack for the on-site search feature. The soft 404's seem to all be url's for search queries that

Re: Is there an equivalent to JPA @embedded in django modeling

2013-10-04 Thread Khanh Tran
Thank you, jondbaker. That works! On Wednesday, October 2, 2013 3:55:11 PM UTC-7, Khanh Tran wrote: > > Lets say both Customer and Business have an Address. In JPA, we can store > address attributes(street,city,state,zip) directly inside Customer and > Business using @Embedded annotation.Is

Re: django formwizard NoFileStorageConfigured

2013-10-04 Thread Adonis Nafeh
I ran into the same error. Using files in formwizard requires configuring File Storage, according to docs https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/#handling-files initializing file_storage fixed it for me. from django.core.files.storage import FileSystemStorage

Re: PyCons in Africa

2013-10-04 Thread Alioune Dia
We are a community (http://blog.dakarlug.org/) based in Senegal since 2008 and we operate in Free Software (OS and Software) and Python is one of our favorite programming languages within our community. And we organize occasional sessions programing Python / Django. This would be a great privilege

Re: PyCons in Africa

2013-10-04 Thread Nigel Legg
I have lived in both Zambia and Kenya, and have family in Zambia. Bongo Hive in Lusaka may be a good place to start (they are on twitter). I haven't been there for more than five years, but would be interested in getting involved in some way, time and work permitting. Cheers, Nigel 07914 740972

Looking for a job as a junior django developer or internship (remote)

2013-10-04 Thread Mariusz Dev
Hello! Looking for a job or internship opportunities as django developer (remote). I have experience with Django, CSS3, HTML5, JavaScript. My email: mariusz.developm...@gmail.com Cheers! -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Copy all the data from an existing database when create the testing database.

2013-10-04 Thread Tianyi Wang
Yes, it'd be nice to have all the data from the existing database. I am aware the loading fixtures way, but I will need to do that every time I know the existing database has changed a lot. So just copy the data when creating the test database seems more convenient. Tianyi On Friday, 4

Re: Beginner to Django

2013-10-04 Thread Ovnicraft
On Thu, Oct 3, 2013 at 5:20 AM, Manimaran R wrote: > hai everyone!! > > im a beginner to django,dont have prior knownledge about django!! > > Help me step by step,rit frm installation! > > for ur ref im using windows 7! dont have any open source,so help me with >

PyCons in Africa

2013-10-04 Thread Daniele Procida
First of all, apologies if you have to read this more than once because of the cross-posting. I've had an idea brewing recently. I went to meet Professor Judith Hall this afternoon to talk about it. She's involved with http://medicine.cardiff.ac.uk/mothers-africa/ (amongst other things) and

Re: Copy all the data from an existing database when create the testing database.

2013-10-04 Thread C. Kirby
Do you always want all of the data from the existing database, or is this just a quick way to have "real data" for testing. If it is the latter I would use manage.py dumpdata to generate test fixtures. You can load the fixtures in you tests as needed. Chaim On Friday, October 4, 2013 8:48:45

Copy all the data from an existing database when create the testing database.

2013-10-04 Thread Tianyi Wang
Hi, When I run my tests, I'd like it to copy an existing database with all the data when create the testing database. I never thought about this till one of my colleague uses POSTGIS_TEMPLATE = DATABASES['default']['NAME'] for his tests. Because we use GeoDjango for our project, so

django-metrics-dashboard question.

2013-10-04 Thread Nigel Legg
I am looking for a solution.. I want to allow all users of my app to create their own dashboards for each project, and for their clients to be able to see only the dashboards they have permission to see. I have looked at django-metrics-dashboard (

Re: New version of django-permissionsx

2013-10-04 Thread thinkingpotato
A short update: I just pushed a new package with some bug fixes and new functionality. Docs were also updated. On Friday, October 4, 2013 5:33:41 AM UTC+2, thinkin...@gmail.com wrote: > > Hi, > > I would be absolutely grateful if you could please check it out and give > me some feedback. What

Re: Disabling object persistence ?

2013-10-04 Thread Javier Guerra Giraldez
On Fri, Oct 4, 2013 at 1:45 AM, Marc'h wrote: > Thus, I'd like to know if there is any means to by-pass the automatic > persistence mechanism when using collection attributes which are foreign-key > based. the ORM is a mapping to an SQL database, by definition that means

Re: Disabling object persistence ?

2013-10-04 Thread Daniel Roseman
On Friday, 4 October 2013 07:45:40 UTC+1, Marc'h wrote: > Hello, > > I'm battling with Django in order to try avoiding object persistence when > initialising foreign key model attributes. The app I'm using Django for > implements a facade for an already existing database. It's main purpose is

Inconsistency in model field with file storage on Amazon S3

2013-10-04 Thread Vivek Prakash
Hi all, I am running a fairly good scale production system in Django, where we receive requests in order of 100 to 1000 per second. We are using s3boto backend for file storage. All the files are saved in a single bucket on S3. When the request for number of files to be saved increases,

Inconsistency in model field with file storage on Amazon S3

2013-10-04 Thread Vivek Prakash
Hi all, I am running a fairly good scale production system in Django, where we receive requests in order of 100 to 1000 per second. We are using s3boto backend for file storage. All the files are saved in a single bucket on S3. When the request for number of files to be saved increases, database

Not able to build the satchmo store

2013-10-04 Thread roopasingh250
I installed python 2.6 and django 1.3.7 in my Linux machine.I followed the instruction in [this documentation][1] to install sachmo 0.9.2.I am able to import the sachmo in python prompt and able to check the version also.I am getting the error at this line "Build Your Store With clonesatchmo"

New version of django-permissionsx

2013-10-04 Thread thinkingpotato
Hi, I would be absolutely grateful if you could please check it out and give me some feedback. What I'm interested in particular is how it works with different Django/Python/apps configurations and if the syntax/API is easy to follow. I would be even more happy if you found it useful in your

Re: Best practice for server-generated downloads?

2013-10-04 Thread DJ-Tom
Thanks - that's what I was looking for. But how do I send the browser back to a specific page after serving the download? Am Donnerstag, 3. Oktober 2013 10:54:51 UTC+2 schrieb John McNamara: > > Hi, > > Here is an example of using XlsxWriter from SimpleHTTPServer or Django. It > probably

Re: Custom Filter: Filter output based on a Python list

2013-10-04 Thread Leonardo Giordani
Emmanuel, for examperiod I'd simply write [...] for period in ['DECEMBER 2011', 'MAY 2011', 'DECEMBER 2010']: context['periods'][period] = Results.objects.all().filter(\ reg_number = 'DBA/20020/82/DU').filter(examperiod=period) [...] Just be careful when dealing with such

Re: is it possible to make the |safe template filter conditional on content

2013-10-04 Thread Mike Dewhirst
On 4/10/2013 9:44am, Mike Dewhirst wrote: On 4/10/2013 12:21am, Bill Freeman wrote: You can certainly write a custom filter. And if you do that, you can divvy up your value into footnote links and other, and escape the other parts yourself, returning the result as a safe string. So you mean

Disabling object persistence ?

2013-10-04 Thread Marc'h
Hello, I'm battling with Django in order to try avoiding object persistence when initialising foreign key model attributes. The app I'm using Django for implements a facade for an already existing database. It's main purpose is to be used as a (read-only) ReST server returning objects built by

Re: Have browsers broken post-redirect-get? best practice now?

2013-10-04 Thread Darren Spruell
On Thu, Oct 3, 2013 at 6:15 AM, graeme wrote: > I disagree that breaking the back button is always bad. For example suppose > you have a series of forms (i.e. a "wizard"): > > Page 1) fill in form. On POST creates a new Model() and saves it to the > database > 2) do