Re: How to: Django development and debugging

2016-10-20 Thread Antonis Christofides
> - Very rarely would they debug an application > - i.e. majority of the time they don't launch the application in debug mode By "debug mode" I guess you mean stepping into the code, stopping at breakpoints, etc. I wouldn't say I do it rarely, I do it quite often. I add "import ipdb; ipdb.set_tra

Re: Deploy on Heroku Error

2016-10-20 Thread Antonis Christofides
Hello, > Link to the repo: https://github.com/alinecrsouza/django-blog-app that repo only contains the blog app. Could you show us the polls app? Regards, Antonis Christofides http://djangodeployment.com On 2016-10-20 22:49, Aline C. R. Souza wrote: > Hello everybody, > > I am catching an erro

How to: Django development and debugging

2016-10-20 Thread Don Thilaka Jayamanne
Hi Everyone, I'm the author of a Python plugin for the VS Code editor (https://github.com/DonJayamanne/pythonVSCode). Basically it provides intellisense, code navigation, debugging (django, multi threads, etc), data science and the like. When it comes to debugging django applications, today the

Re: admin popup + button help

2016-10-20 Thread David Ogutu
Actually, never mind, I was able to work around the problem be redefining hurry. On Oct 20, 2016 2:47 AM, "Derek" wrote: > The article linked to is from 2008 - have some things not changed in > Django since then? > > On Friday, 14 October 2016 15:22:12 UTC+2, David wrote: >> >> Hi Giuseppe, >> I

Deploy on Heroku Error

2016-10-20 Thread Aline C. R. Souza
Hello everybody, I am catching an error on trying to deploy my app on heroku. This is the traceback: File "/app/.heroku/python/lib/python3.5/site-packages/polls/admin.py", line 3, in 2016-10-20T18:42:46.734824+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/importlib/__init__.py

Re: HELP - Django variable in style (width) attribute

2016-10-20 Thread Aline C. R. Souza
Thank you both, Constantine and James. Thanks to your comments I could realize where the error was, and I could improvve performance assigning the returned value to a variable. The error was in html, and not django. When I looked at the rendered html, I could see the error. Em sábado, 15 de ou

Re: How to use Django forms for surveys

2016-10-20 Thread Diego De La Vega
El miércoles, 19 de octubre de 2016, 21:11:18 (UTC-3), James Schneider escribió: > > > > On Sun, Oct 16, 2016 at 7:37 PM, Diego De La Vega > wrote: > >> Hi. This is my first question in this group. >> >> My problem is that I have to program a survey application and I would >> like to have a hin

Integrating django-registration-redux along with custom_user: Prevent user registration if UserProfile is not valid

2016-10-20 Thread njan
I'm trying to use django-registration-redux along with custom_user. I have added both apps to settings.py My main urls.py is as given below from userprofile.forms import UserProfileForm from registration.backends.default.views import RegistrationView urlpatterns = [ url(r'user/register/$',

Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-20 Thread Othniel Ayinzat
Hi guys, I have been following the django tutorials up to part 4 on the polls application. My details template only displays the vote submit button but the radio buttons for making choices won't show. I have been battling with this for some hours now and i need help or some pointers. Thanks. Be

Filters in Search

2016-10-20 Thread 'dtdave' via Django users
I have an issue that I have got myself into a mess trying to solve, so any help would be appreciated. I have implemented a simple search solution that works fine and this is my view: from django.shortcuts import render from django.views.generic import ListView from jobs.models import Job from d

Re: Compiling/packing Django to one binary

2016-10-20 Thread GMail
> What if system libraries are not the same as yours, you're not shipping all > dependencies, including distribution libs as well? When making virtualenv relocatable I pass --always-copy argument, so all libs are copied. Well, most of them, I manually copy some that aren't (like libpython). As

Re: Compiling/packing Django to one binary

2016-10-20 Thread Jani Tiainen
On 20.10.2016 13:39, GMail wrote: How do you can make sure that you can install all the libs your Django app, or any dependencies you may have are installed correctly? I'm installing dependencies in virtualenv. How you do setup static file serving? I'm shipping Nginx binary and config a

Re: Compiling/packing Django to one binary

2016-10-20 Thread GMail
> How do you can make sure that you can install all the libs your Django app, > or any dependencies you may have are installed correctly? > I'm installing dependencies in virtualenv. > How you do setup static file serving? > I'm shipping Nginx binary and config along with app. Static files are

Re: admin popup + button help

2016-10-20 Thread Derek
The article linked to is from 2008 - have some things not changed in Django since then? On Friday, 14 October 2016 15:22:12 UTC+2, David wrote: > > Hi Giuseppe, > I was upgrading to a later version of django and ran into the same issue. > Did you find a work-around? > > On Wednesday, April 27, 2

Re: Start point of dynmanic models creation.

2016-10-20 Thread Vlasov Vitaly
Yes. I know how django works with dynamic models and this make me sad. Yes, i know workflow of AppConfigs init. It set models_ready and ready booleans and call AppConfig.ready() then. I really can't understand why AppConfig.ready() is calling multiple times. This is strange. But this can be fix

Re: Migrations for multiple Django versions

2016-10-20 Thread Vlastimil Zíma
Is that an official solution for migrations based on Django version? Probably works, but it doesn't look like a nice solution. Regards, Vlastimil Dne středa 19. října 2016 1:57:25 UTC+2 Tim Graham napsal(a): > > Assuming the problem is makemigrations generating different migrations > based on t