Re: HTMLDOC as a python view

2015-10-13 Thread MikeKJ
The shell command worker may be at fault as the files in media/pdf are 0byte but having said that of course if the varaibles being sent to it are erroneous that would have the same effect wood trees I'll have a look at easy_pdf, I have the context dict available so should be a relatively qu

How can I display assigned group to users with list_display in admin.py?

2015-10-13 Thread Dropd
I created this question on StackExchange but no answer that helped me understand what is needed to be done. Can anyone help me understand what I need to build and what it does? *Question:* http://stackoverflow.com/questions/33088666/how-to-display-assigned-group-with-list-display-in-django-ad

django

2015-10-13 Thread Anagha R
what is the first steps in fixing an identified web? -- 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 g

Re: django

2015-10-13 Thread François Schiettecatte
This does not really make sense? What do you mean? > On Oct 13, 2015, at 8:06 AM, Anagha R wrote: > > what is the first steps in fixing an identified web? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this grou

Re: is Django right choice for a financial app

2015-10-13 Thread Avraham Serour
well if you have online reviews stating or showing that sqlalchemy is faster than django ORM, than this is exactly what I'm asking you to post, it would be an interesting read On Tue, Oct 13, 2015 at 5:24 AM, kk wrote: > hello, > > > On Tuesday 13 October 2015 04:09 AM, Avraham Serour wrote: > >

ManyToMany doesn't support validators?

2015-10-13 Thread Mike Herring
Doc here: https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.ManyToManyField ManyToManyField does not support validators. Is there a particular reason that ManyToManyField doesn't support validators? I would like to add a validator to require the user to select at least

Re: ManyToMany doesn't support validators?

2015-10-13 Thread Tim Graham
The rationale is described in https://code.djangoproject.com/ticket/19671. On Tuesday, October 13, 2015 at 7:06:16 AM UTC-7, Mike Herring wrote: > > Doc here: > > https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.ManyToManyField > > ManyToManyField does not support validato

GenericForeignKey and Proxy Models

2015-10-13 Thread Fermin Arellano
I am using proxy models (Student, Teacher, Parent) from a base class Person. I also have a class called BoardMember which uses the content type framework. In Boardmember I declared a GenericForeignKey(content_type, object_id, for_concrete_model=False). In my proxy model (Teacher) I declared a

Fwd: Django 1.8: subclass AbstractUser, App 'auth' doesn't have a 'myuser' model.

2015-10-13 Thread 술욱
Hello, I'm re-posting this. Note that I already tried AUTH_USER_MODEL = "myauth.MyUser', and while that makes the problem disappear, the change also creates new tables in the database. What are my options? AFAIK 1.6 is deprecated for security reasons and I want to upgrade to 1.8.x. Thanks. Norb

Re: Django 1.8: subclass AbstractUser, App 'auth' doesn't have a 'myuser' model.

2015-10-13 Thread Tim Graham
Do you want to use the custom user model or not? What extra tables are created? On Tuesday, October 13, 2015 at 1:31:03 PM UTC-7, Norberto Bensa wrote: > > Hello, > > I'm re-posting this. > > Note that I already tried AUTH_USER_MODEL = "myauth.MyUser', and while > that makes the problem disapp

Team project via Git repo

2015-10-13 Thread rhc . openmpi
Hi folks I'm a Django newbie (have found it very helpful!), so please excuse the naivete. I have a question regarding team work on a Django project via GitHub. I followed your excellent tutorial and have a virtual Python v2.7 environment with Django 1.8.5 installed in it (FWIW: I thought I ins

inlineformset_factory with multiple foreignKeys

2015-10-13 Thread jupiter
Hi, How can the inlineformset_factory be used for multiple following foreignKeys at following an example? class Recipe(models.Model): pub_date = models.DateTimeField('Date Published', auto_now_add = True) title = models.CharField(max_length=200) instructions = models.TextField() clas

Re: inlineformset_factory with multiple foreignKeys

2015-10-13 Thread Nkansah Rexford
With multiple inlineformset_factory, Ive not tried, but perhaps this could help: http://stackoverflow.com/questions/3945435/adding-multiple-models-to-inlineformset-factory Mine was just one inlineform -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Team project via Git repo

2015-10-13 Thread rhc . openmpi
Just to update: we also tried simply copying the entire virtual environment across, correcting for any differences in path. Still go the same behavior. We'd really welcome some advice on this one as otherwise we won't be able to use Django - we need a way to collaborate on implementation. Thank

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
Have you installed any dependencies via "pip" ? If not and all the code has been done under your djando apps, the problem could be on the git. Have you checked .gitignore ? Sent from my iPhone > On Oct 13, 2015, at 21:38, rhc.open...@gmail.com wrote: > > Just to update: we also tried simply co

Re: Team project via Git repo

2015-10-13 Thread Ralph Castain
> On Oct 13, 2015, at 5:42 PM, Jonathan Querubina wrote: > > Have you installed any dependencies via "pip” ? Only Django itself was installed via “pip” - we went thru the binaries and edited the path. We also uninstalled Django and reinstalled it on the host using “pip”, but the behavior is t

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
No, if debug is true, you do not have to worry about statics yet Are you activating the env before the runserver command? Sent from my iPhone > On Oct 13, 2015, at 21:56, Ralph Castain wrote: > > >> On Oct 13, 2015, at 5:42 PM, Jonathan Querubina wrote: >> >> Have you installed any dependen

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
This is a long shot, but, do you have .pyc files on the repository? If yes, try removing *.pyc Sent from my iPhone > On Oct 13, 2015, at 22:05, Jonathan Querubina wrote: > > No, if debug is true, you do not have to worry about statics yet > > Are you activating the env before the runserver co

Django, Bootstrap Tags input, and Typeahead?

2015-10-13 Thread Mark London
What is the easiest way to implement a django field with bootstrap and typeahead? I found a module calleddjango-bootstrap-typeahead that looks exactly what I want. The instructions sa

Re: Team project via Git repo

2015-10-13 Thread Aaron C. de Bruyn
Without knowing too much about your environment, I figured I'd tell you how I do it on my Debian-derivative systems. * Install python-virtualenv and virtualenvwrapper - These tools help you create isolated python environments under your home folder under '.virtualenv'. * Create a virtualenv for th

Re: Team project via Git repo

2015-10-13 Thread Aaron C. de Bruyn
Oops--almost forgot. Create a .gitignore in your ~/code/carsite file before you commit your changes and push them to GitHub. https://www.gitignore.io -A On Tue, Oct 13, 2015 at 7:00 PM, Aaron C. de Bruyn wrote: > Without knowing too much about your environment, I figured I'd tell > you how I d

Re: Team project via Git repo

2015-10-13 Thread Ralph Castain
I’ll give these, and the suggestions from Jonathan, a try tomorrow when I arrive after travel and let you know how it goes. Thanks!!! > On Oct 13, 2015, at 7:01 PM, Aaron C. de Bruyn wrote: > > Oops--almost forgot. Create a .gitignore in your ~/code/carsite file > before you commit your chang