Re: apprendre Django

2015-01-14 Thread th . granier
je me suis mis a apprendre Django et python3.4 et c'est un regal Pourquoi Django? parce que c'est framework tres puissant, tres logiquesuffisammant complexe pour etre tres interessant et reutilisable Pourquoi Python? parce que je voulais apprendre un language universel et puissant qui me

apprendre Django

2015-01-14 Thread th . granier
Bonjour -- 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 email to

Re: object has no attribute 'new_objects' error when saving related objects

2015-01-14 Thread mateja
Thank you! You're right, I don't even want to be able to edit datapoints, just display them in the admin view so they shouldn't be an inline. On Wednesday, January 14, 2015 at 9:42:57 AM UTC-5, Collin Anderson wrote: > > Hi, > > You are using an inline which uses a formset under the hood. When a

Re: Best Tutorial

2015-01-14 Thread Tobias Dacoir
After doing the official tutorial I also worked through this one: http://www.tangowithdjango.com/ Anything else you can find with Google, if you have specific problems there are tons of blog posts, video tutorials and so on. -- You received this message because you are subscribed to the

Re: hello need help to configure django

2015-01-14 Thread Tobias Dacoir
I'm also new to Django but to me it seems that you have not registered any App in settings.py. -- 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

Re: Which 3rd Party (Social) Auth App should I use?

2015-01-14 Thread Tobias Dacoir
Thanks for the link. That explain's how I can inject my logic and hopefully form into the authentication process. Still quite complicated for a beginner. I did some more reading and apparently I need django-registration-redux for local registration (and stuff like password reset) and then a

Re: hello need help to configure django

2015-01-14 Thread Ulisses Cruz
Hello, I'm new to Django but maybe this can help you: https://docs.djangoproject.com/en/1.7/intro/tutorial01/ -- 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

Best Tutorial

2015-01-14 Thread Ulisses Cruz
Hello, I'm getting started in Django and I would like to now what books ou tutorials can help me in this stage. I would like one that is up to date with django 1.7. Also, I've been reading the official documentation, but any other hint would be apreciated. -- You received this message

Re: hello need help to configure django

2015-01-14 Thread Ulisses Cruz
Hello, I'm new to django, but maybe this can help you: https://docs.djangoproject.com/en/1.7/intro/tutorial01/ quarta-feira, 14 de Janeiro de 2015 às 01:13:53 UTC-1, zsandrusha escreveu: > > I had worked site @ webfaction hosting but i loose old domain names and > trying to configure new domain

Integration with Legacy DB

2015-01-14 Thread Sells, Fred
Although I have not tried it, the docs are pretty clear about how to sync a django model to an existing legacy DB (sqlserver08 in this case). But is there a way to sync to a select statement with multi-table joins without first creating a View? I know that creating a view would be easiest, but

Re: Which 3rd Party (Social) Auth App should I use?

2015-01-14 Thread Viktor Voronin
Hi Tobias, Did check the pipeline logic at python-social-oauth? http://python-social-auth.readthedocs.org/en/latest/pipeline.html#authentication-pipeline There is an ability to inject your custom logic into authenticating process. And why did you decide to take B way? Or why did you reject A?

Running Django Test Suite with pytest

2015-01-14 Thread Jozef knaperek
Hello, I'd like to know if anybody has tried to run Django's own tests via pytest. Django does have its own, quite extensive runtests.py script which is intended for testing Django codebase. I need to execute the test suite with py.test though (in order to make use of some pytest plugin). Any

Re: Desired: Field behavior like AutoField + unique_with

2015-01-14 Thread Matt Cooper
Got it - thank you! This community is great :) On Tuesday, January 13, 2015 at 11:31:19 PM UTC-8, Jani Tiainen wrote: > > Because sequence number was running number per "tenant" (in my case it > was invoice type) that started from zero (0) at the beginning of the > every year. > > You could

Re: ImportError: No module named check_constraints

2015-01-14 Thread Collin Anderson
Hi, Yes, a full traceback would be helpful, if you can get it. If it's a manage.py commany, you may need to use --traceback. Collin On Tuesday, January 13, 2015 at 5:38:47 AM UTC-5, Jenefa Jeyaraj wrote: > > ImportError: No module named check_constraints > > -- You received this message

Re: object has no attribute 'new_objects' error when saving related objects

2015-01-14 Thread Collin Anderson
Hi, You are using an inline which uses a formset under the hood. When a formset gets saved it gets the expected new_objects, but you're not saving the formset. It might make sense to not use an inline and display the data points by hand. Collin On Tuesday, January 13, 2015 at 8:49:54 AM

Re: ChoiceInline field giving name error

2015-01-14 Thread Vinayak Kaniyarakkal
On Wednesday, 14 January 2015 18:33:59 UTC+5:30, sanjeet kaur wrote: > > Hi, > I am working on django ap in which I have two apps in a single project > but while using inline option, I get the error > > NameError: name 'ChoiceInline' is not defined > > I have searched this error and all

Re: Many-To-Many Relationship changes not accessible in Model.save() ?

2015-01-14 Thread Collin Anderson
Hi, The admin first calls obj.save(), then it saves the related data. You could try putting your logic in ModeAdmin.save_related() https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_related Collin On Monday, January 12, 2015 at 5:00:54 PM UTC-5,

Re: modelformset question - interspersing extra forms among existing forms

2015-01-14 Thread Collin Anderson
Hi Richard, Yes, my way is pretty hacky. The proper way is to get the instance from the form.save() method like you mentioned. Collin On Monday, January 12, 2015 at 10:58:46 AM UTC-5, Richard Brockie wrote: > > Hello again Collin, > > I am using your example as the basis for another similar

Re: do migrations (Django 1.7+) handle production data?

2015-01-14 Thread Markus Holtermann
Hey Abraham, to be more specific, when you used South and ran "manage.py datamigration" [1] you got an empty migration file with a forwards and backwards method where you had to fill out the blanks and tell South what to do, e.g. to create a certain object in the database. With Django's

Re: ChoiceInline field giving name error

2015-01-14 Thread Kamal Kaur
On Wed, Jan 14, 2015 at 6:33 PM, sanjeet kaur wrote: > NameError: name 'ChoiceInline' is not defined Have you tried this? http://stackoverflow.com/questions/22768262/nameerror-not-defined -- Kamaljeet Kaur -- You received this message because you are subscribed to

Re: do migrations (Django 1.7+) handle production data?

2015-01-14 Thread James Bennett
On Wed, Jan 14, 2015 at 6:34 AM, Abraham Varricatt < abraham.varric...@googlemail.com> wrote: To be more specific, the document you link clearly mentions that "Django > can’t automatically generate data migrations for you" > > > And this is what puzzles me. If it isn't automated and is something

Re: do migrations (Django 1.7+) handle production data?

2015-01-14 Thread Abraham Varricatt
To be more specific, the document you link clearly mentions that "Django can’t automatically generate data migrations for you" And this is what puzzles me. If it isn't automated and is something that needs to be done manually, what's so great about it's inclusion in Django 1.7? Slowly

Which 3rd Party (Social) Auth App should I use?

2015-01-14 Thread Tobias Dacoir
I'm trying to integrate Social Auth to my Webapp. As I have to store a lot of additional information for each User I had two choices: A) Create a UserProfile with a OneToOne Relationship to User B) Overwrite the default User class by inhereting from Abstract User Currently I chose to go with B)