Re: Data migration fails because contenttypes not yet ready

2015-03-19 Thread Daniel Hahler
Hi Markus, thanks for your answer and explanations! I am now using a management hook to call the `loaddata` command manually via the post_migrate signal: % cat project/appname/management/__init__.py # Handle initial data in Django 1.7+. from django.db.models import signals from

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Mike Dewhirst
On 20/03/2015 12:19 PM, Fellipe Henrique wrote: Here is a fairly typical static file template line ... href="{{STATIC_URL}}css/styles.css" media="screen"/> ... and to see where that fits, insert something like this in your local settings. You will discover any bludners fairly quickly ...

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Stephen J. Butler
Some questions you need to answer then: 1. Does the URL to the static resource appear properly in your rendered HTML? 2. Did you configure your web server properly so that the STATIC_ROOT appears at the right location? 3. After running collectstatic does the STATIC_ROOT directory have the

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Vijay Khemlani
What URL is being generated in the final HTML?, and does that path match the one you have in the static folder in your app? Also, if your are on debug mode, you don't need to run collectstatic On Thu, Mar 19, 2015 at 10:19 PM, Fellipe Henrique wrote: > Thanks, but I already

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Fellipe Henrique
Thanks, but I already try the docs, but my static files doesn't show! Show me 404 error.. even when I run manage.py collectstatic T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge' *Blog: http://fhbash.wordpress.com/

Looking for a Django consultant

2015-03-19 Thread Joe Landrigan
I'm trying to build a program that will allow churches to offer services and network with their members and other churches. As you may have guessed from the words "church" and "service" my budget is limited, but I am willing to pay. I need some help resolving issues around per-object

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Stephen J. Butler
It says right in the docs what to do: https://docs.djangoproject.com/en/1.7/howto/static-files/ On Thu, Mar 19, 2015 at 7:57 PM, Fellipe Henrique wrote: > Hi, > > In my template, when I made a reference to my Static folder.. what's the > correct usage? > > {{STATIC_URL }} or

{{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Fellipe Henrique
Hi, In my template, when I made a reference to my Static folder.. what's the correct usage? {{STATIC_URL }} or {% static "" %} Django 1.7 and Python 3 Thanks! T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Tim Graham
Discussion to be continued on django-developers: https://groups.google.com/d/topic/django-developers/69fOquu8v-U/discussion On Thursday, March 19, 2015 at 12:18:46 PM UTC-4, Carl Meyer wrote: > > On 03/19/2015 01:01 AM, Russell Keith-Magee wrote: > > On Thu, Mar 19, 2015 at 12:05 PM, James

Django and PostgreSQL - Amazon RDS new SSL certificate

2015-03-19 Thread Flávio Junior
When I logged in my AWS account I got the following message: *"We have determined that your RDS database instances are using the existing SSL certificate (rds-ca-2010) and this certificate will be updated on 23 March 2015. You must follow the steps here to update your application with the

Re: Django builds wrong sql query.

2015-03-19 Thread Алексей Широков
Thanks for your reply, I will try... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Carl Meyer
On 03/19/2015 01:01 AM, Russell Keith-Magee wrote: > On Thu, Mar 19, 2015 at 12:05 PM, James Bennett > wrote: > Way, way, *way* back in the day, there was unofficial bugfix support > for pre-magic-removal versions of Django run on the

Re: newbie question

2015-03-19 Thread Andrew Farrell
The other commenters are right that reading the tutorial is a good use of your time. https://docs.djangoproject.com/en/1.7/intro/tutorial03/ is the section relevant to your question. On Thu, Mar 19, 2015 at 10:39 AM, Javier Guerra Giraldez wrote: > On Wed, Mar 18, 2015 at

Re: newbie question

2015-03-19 Thread Javier Guerra Giraldez
On Wed, Mar 18, 2015 at 9:41 PM, VMD wrote: > I have skimmed the tutorial and didn't find (notice) the answer. Why not > point me to an answer to my question? that's exactly the point. your question assumes Django works in some specific way, and there should be a

Re: Django 1.8 post_save without recursion

2015-03-19 Thread Alexander MacQueen
The post_save 'created' argument could help if you only wanted to trigger the signal when the Person was first created: @receiver(post_save, sender=Person) def do(instance, *args, **kwargs): if kwargs.get('created'): instance.ok = True instance.save() On Friday, March

Re: newbie question

2015-03-19 Thread VMD
On Wednesday, March 18, 2015 at 12:51:22 PM UTC-6, Avraham Serour wrote: > > short - use a view > > follow the tutorial, yes you will learn how to store and retrieve values > from a database, and I understand that you don't need that yet but the > tutorial is very brief, you won't waste your

Re: Django builds wrong sql query.

2015-03-19 Thread Tim Graham
Try ditching .extra() and using the expressions API in Django 1.8. We're trying to make everything that's possible with .extra() available through better APIs so try to avoid it as even if there is a bug, it's probably unlikely to be fixed. On Thursday, March 19, 2015 at 9:11:39 AM UTC-4,

Django builds wrong sql query.

2015-03-19 Thread Алексей Широков
*I have the following code:* package_queryset = Package.objects.extra( where=[(' "document_package"."id" IN (SELECT DISTINCT ON ("document_id") "id"' ' FROM "document_package"' ' WHERE "status" NOT IN

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Stephen Gallagher
> On Mar 19, 2015, at 3:18 AM, Russell Keith-Magee > wrote: > > >> On Thu, Mar 19, 2015 at 2:27 PM, Mike Dewhirst wrote: >> Maybe ... some effort to solve the infrastructure issue would make it worth >> kickstarter funding. >> >> A couple

Re: How to make request ie GET/POST to soap (windows web service ) in Django?

2015-03-19 Thread SHINTO PETER
Thank you James Schneider & Andrew Farrell On Wednesday, 18 March 2015 21:46:33 UTC+5:30, SHINTO PETER wrote: > > How to make request ie GET/POST to soap (windows web service ) in Django? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Suggestion

2015-03-19 Thread Johan Hendriks
Op 18-03-15 om 07:38 schreef Jay Prasad: Hi All, I'm started Pyhthon and django ,give me some suggestions and which sites was good .help me.thank you all -- You received this message because you are subscribed to the Google Groups "Django users" group. To

contrib admin changeform_view and atomic

2015-03-19 Thread Alessandro Pasotti
Hi, With Django >= 1.6, changeform_view is wrapped in atomic(), this broke my application where the model's save() has couple of triggers (I'm in Postgresql) and a raw query in a post_save signal, the error is the infamous "cannot alter table because of pending triggers...". This is what I'm

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Russell Keith-Magee
On Thu, Mar 19, 2015 at 2:27 PM, Mike Dewhirst wrote: > Maybe ... some effort to solve the infrastructure issue would make it > worth kickstarter funding. > > A couple of colleagues are pushing me towards Docker as a packaged Python > 3.4 environment but that is beyond my

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Russell Keith-Magee
On Thu, Mar 19, 2015 at 12:05 PM, James Bennett wrote: > On Wed, Mar 11, 2015 at 3:54 PM, Tim Graham wrote: > >> Having managed the last few security releases for Django, I'll say it's >> one of my least favorite tasks and I'm quite looking forward

Re: Django 1.6's lifespan for security updates?

2015-03-19 Thread Mike Dewhirst
Maybe ... some effort to solve the infrastructure issue would make it worth kickstarter funding. A couple of colleagues are pushing me towards Docker as a packaged Python 3.4 environment but that is beyond my interest atm. I am running a dedicated production server on Ubuntu 14.04 which more