Re: Using FormMixin with DetailView

2015-07-27 Thread Gergely Polonkai
Forgot to add, the full backtrace would be helpful, too. It should be present on the same error page. On 28 Jul 2015 08:52, "Gergely Polonkai" wrote: > Hello, > > could you show us the relevant part of your urls.py file? I suspect view > parameters to cause the trouble but I'd like to be sure. >

Re: Using FormMixin with DetailView

2015-07-27 Thread Gergely Polonkai
Hello, could you show us the relevant part of your urls.py file? I suspect view parameters to cause the trouble but I'd like to be sure. Best, Gergely On 28 Jul 2015 00:46, "Ioannis Latousakis" wrote: > I am on the exact same situation as the one described in the documentation > here: > https:/

Tasty Pie in django

2015-07-27 Thread Anubhav Kaushik
I am looking on code that someone else wrote , i am new to tasty pie , so what i have understood that when ever someone gives a "POST" request then resource's save method gets called. what is happening with my code is whenever some gives "POST request" , save method gets called thrice and for so

Django 1.8 migrations showing "AttributeError"

2015-07-27 Thread vijay kumar
Hi, Problem: Empty migration doesn't show user friendly message. When i run "python manage.py migrate" with no new migrations to be applied it show me error message "AttributeError: '_Meta' object has no attribute 'model_name'" instead of showing user friendly message "no migration to apply"

Re: Django 1.8 migrations not obeying routers in multi db setup

2015-07-27 Thread Maxim Kiselev
Little explanation: Failed - import into default database. All migration are complete, but in default database. -- 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 1.8 migrations not obeying routers in multi db setup

2015-07-27 Thread Maxim Kiselev
Hi, guys. Problem: django not loading db router. In router.py https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#database-router and pref settings.py Migrations from 2 other app without --database flag are failed. Migrations from one app with custom model field in others models are failed

Using FormMixin with DetailView

2015-07-27 Thread Ioannis Latousakis
I am on the exact same situation as the one described in the documentation here: https://docs.djangoproject.com/en/1.7/topics/class-based-views/mixins/#using-formmixin-with-detailview I have followed the documentation but I get the following exception: __init__() takes exactly 1 argument (3 g

Re: System requirements

2015-07-27 Thread Tom Lockhart
> On Jul 27, 2015, at 11:48, Ingo Hohmann wrote: > > Thank you. > > It's the age old problem between management and development. I'd say develop > on a small server, and then test how far it can go. But someone wants to know > _now_. “Thousands of entries” is relatively small. Unless you hav

Re: System requirements

2015-07-27 Thread Erik Cederstrand
> Den 27/07/2015 kl. 20.48 skrev Ingo Hohmann : > > Thank you. > > It's the age old problem between management and development. I'd say develop > on a small server, and then test how far it can go. But someone wants to know > _now_. Well, then tell them that the waterfall development model di

Re: System requirements

2015-07-27 Thread Ingo Hohmann
Thank you. It's the age old problem between management and development. I'd say develop on a small server, and then test how far it can go. But someone wants to know _now_. Am Montag, 27. Juli 2015 19:04:26 UTC+2 schrieb alvaro.rosa1985: > > Não entendi nada. > > Erik Cederstrand > escreveu: >

Transaction questions

2015-07-27 Thread Carsten Fuchs
Hi all, using Django 1.8.3, at this time I have code like this: try: mm = TestMonthModel.objects.select_for_update().get(jahr=Jahr, monat=Monat) except TestMonthModel.DoesNotExist: mm = TestMonthModel(jahr=Jahr, monat=Monat) # A *long* computation, eventually setti

Re: URL Generation

2015-07-27 Thread James Schneider
> I think what you want is something like: > > # team URL's > url( > regex=r'organization/(?P\d+)/team/', > view=include('project.teams.urls', namespace='organization-team', > app_name='team'), > ), > > # competition team listing - project.competitions.urls > url( > regex=r'^(?P\d+)/tea

Re: System requirements

2015-07-27 Thread Alvaro Rosa
Não entendi nada. Erik Cederstrand escreveu: > >> Den 27/07/2015 kl. 07.32 skrev Ingo Hohmann : >> >> Hi, >> >> I'm new to django, and I would like to get a hint about system requirements. >> If you know about any helpful links, these are welcome, too. So far what I >> dog up by googlng wasn

Building a UNIX style permissions system in Django

2015-07-27 Thread Some Developer
I have a need for a more robust permission system for objects in Django than the one provided by it in the core distribution. I want to have users and groups and each to have read, write and edit permissions but I have no idea how to go about how to implement this. I was thinking of having a

Re: "RuntimeError: Error creating new content types."

2015-07-27 Thread Carl Meyer
On 07/26/2015 10:46 AM, Tobias McNulty wrote: > I just ran into this issue as well when updating an old project to > Django 1.8. The only suitable workaround I found was to update first to > Django 1.7 and fake the initial migrations for my apps (presumably > Django's as well, though it seems to ha

Re: Database inserts with autocommit set to off.

2015-07-27 Thread Carl Meyer
Hi Maciej, On 07/27/2015 07:03 AM, Maciej Gol wrote: > I've been recently working (porting to Django 1.8) on a project where we > need to use a few transactions in a single request, and these > transactions cannot be correctly handled by the `atomic` decorator due > to functions calls nesting. Bas

Re: System requirements

2015-07-27 Thread Erik Cederstrand
> Den 27/07/2015 kl. 07.32 skrev Ingo Hohmann : > > Hi, > > I'm new to django, and I would like to get a hint about system requirements. > If you know about any helpful links, these are welcome, too. So far what I > dog up by googlng wasn't too helpful. > > Currently we have a > > - Database

Django upload file to a url(template directory)

2015-07-27 Thread Tomas Sabaliauskis
Can someone please help me to resolve this. Have basic understanding on this and would love to fix this issue, cannot find an answer that would suit my project. main details are here http://stackoverflow.com/questions/31569174/django-1-8-uploading-files-for-a-specific-location?noredirect=1#c

Re: URL Generation

2015-07-27 Thread Tim Graham
I think what you want is something like: # team URL's url( regex=r'organization/(?P\d+)/team/', view=include('project.teams.urls', namespace='organization-team', app_name='team'), ), # competition team listing - project.competitions.urls url( regex=r'^(?P\d+)/team/', view=include

Re: "RuntimeError: Error creating new content types."

2015-07-27 Thread Tim Graham
I am not sure if there's a bug in Django or if it's user error that's causing these problems. If I run syncdb on the Django 1.6 with the tutorial, then upgrade directly to 1.8, all seems okay: $ python manage.py migrate --fake-initial Operations to perform: Apply all migrations: contenttypes,

Database inserts with autocommit set to off.

2015-07-27 Thread Maciej Gol
Hey! I've been recently working (porting to Django 1.8) on a project where we need to use a few transactions in a single request, and these transactions cannot be correctly handled by the `atomic` decorator due to functions calls nesting. Basically, we are sending celery tasks at the end of som

Re: how to show ppt in django framework

2015-07-27 Thread Amitt Bhardwj
I would suggest you to convert ppt to html files and use reveal.js to show slides. There is also github repo. Just google django and reveal.js Amitt Bhardwj Blog: amittbhardwj.wordpress.com Github: https://github.com/amittbhardwj On Jul 27, 2015 4:43 PM, "Selva sundar raj" wrote: > i want to sho

System requirements

2015-07-27 Thread Ingo Hohmann
Hi, I'm new to django, and I would like to get a hint about system requirements. If you know about any helpful links, these are welcome, too. So far what I dog up by googlng wasn't too helpful. Currently we have a - Database with mostly static entries in the thousands - it should be possible t

how to show ppt in django framework

2015-07-27 Thread Selva sundar raj
i want to show slides of ppt using django framework any embed package is there to view ppt -- 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

Re: Model opinnions

2015-07-27 Thread durirompepc
It seems that my last message didn't submitted for some reason, but whatever. I found the problem: it was the *MEDIA_ROOT*. And because of such a noob like me. *Correct:* os.path.join(BASE_DIR, 'myApp/media/') *Wrong:* os.path.join(BASE_DIR, '/media/') *Also correct (media is below "myProject"):