[no subject]

2014-05-02 Thread Igor Korot
Hi, ALL, This is my first official post here so be gentle... ;-) I'm trying to make an application based on the following db structure: table 1: id - primary key, fname char(40), lname char(40) table 2: id - primary key, position char(20) table 3: table1_id, table2_id - foreign key Now, from wha

Working with ModelForms

2014-05-02 Thread LaPerl
Hi all, I have 5 different models all with relations with themselves. I want to use ModelForm to generate a form that will contain fields of all these models. I read and read, I tried different things to do this (inheritance, subclassing...) and then use the class based views to do CRUD with th

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
Whoops sorry, should have thought, rmvirtualenv and mkvirtualenv come with virtualenvwrapper, not the default virtualenv... Regarding the first error, was that the whole error or was there some more after where the screenshot cut off? Looks like it tried to install django that time so I guess t

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
Trying your first solution gave me this error messages ! And trying the second solution gave me the message that rmvirtualenv : command not found ! On Friday, 2 May 2014 23:26:43 UTC+1, Lee wrote:

Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread m1chael
This may or may not work for you, but did you see https://github.com/tabo/django-treebeard/ ? On Fri, May 2, 2014 at 6:17 PM, Scott Harper wrote: > Okay, so here's what I ended up going with: > > Rather than nested inline form sets, I made a formset for all of the > encounters related to the ma

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
So it looks like its uninstalling the Django you already have installed in the global packages, in order to install the version specified in the requirements file, but is hitting a permissions error in doing so because you are not logged in as root (or elevating with sudo). I presume your virtu

Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
Okay, so here's what I ended up going with: Rather than nested inline form sets, I made a formset for all of the encounters related to the map. Then, in my template when I iterate across all the nodes, I'm comparing all the encounters' nodes with the current node, and from there adding each enc

Re: Deployment of django project using setuptools

2014-05-02 Thread Tomáš Ehrlich
I've started experimenting with this idea and created simple app: https://github.com/elvard/django-deploy I would very appreciate any opinions, ideas or second thoughts. Cheers, Tom Dne pátek, 2. května 2014 19:13:30 UTC+2 Tomáš Ehrlich napsal(a): > > Hi there, > when I deploy my django p

Re: Subjectively Required Fields

2014-05-02 Thread Nathan McCorkle
JQuery doesn't solve validation on the backend though, so you'd still want some logic there in case someone modifies or goes around the jQuery and sends packets with bad data. On Apr 29, 2014 12:11 AM, "Venkatraman S" wrote: > What do you mean by an invalid date? IF you are referring to the date

Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
I am using django as a tool for editing data for a game I'm working on; but I have some pretty deeply-nested relationships, and I'm hitting some problems getting forms to work properly. The setup: I have a data structure for nodes in a map. Each map has many nodes; each node has many encounters

Re: Structuring an API in a large project

2014-05-02 Thread Adam "Cezar" Jenkins
On Fri, May 2, 2014 at 10:44 AM, Scot Hacker wrote: > On Thursday, May 1, 2014 8:59:25 AM UTC-7, Cezar Jenkins wrote: >> >> >> As you can guess, the views.py file is pretty big and I want to refactor >> this out. Currently I have a few options in front of me, the one I'm >> leaning towards is to

Re: Proper way to nest data (deeply)

2014-05-02 Thread Venkatraman S
It looks pretty simple to me actually and am not sure if you need mptt. Just the FK needs to be designed properly to capture the 1-to-many relationships. On Fri, May 2, 2014 at 11:13 PM, Venkatraman S wrote: > https://github.com/django-mptt/django-mptt > > > On Fri, May 2, 2014 at 11:07 PM, Sco

Re: Proper way to nest data (deeply)

2014-05-02 Thread Venkatraman S
https://github.com/django-mptt/django-mptt On Fri, May 2, 2014 at 11:07 PM, Scott Harper wrote: > Hello, > > I am using django as a tool to help edit data for a game project I am > working on. Unfortunately, the data relationships have gotten pretty deep > recently, and I'm having some difficult

Proper way to nest data (deeply)

2014-05-02 Thread Scott Harper
Hello, I am using django as a tool to help edit data for a game project I am working on. Unfortunately, the data relationships have gotten pretty deep recently, and I'm having some difficulty getting the formsets to work properly. So here's the ugly setup: I have a table of Maps, nodes, encoun

Deployment of django project using setuptools

2014-05-02 Thread Tomas Ehrlich
Hi there, when I deploy my django projects I always run several commands after pulling latest code from repository. I've started using setup.py few weeks ago which adds manage.py script into $VENV/bin. Basicaly, I always do: source $VENV/bin/activate export DJANGO_SETTINGS_MODULE=... git pull py

Re: error in "makemessages" command on latest django version (1.8dev)

2014-05-02 Thread Fabio Caritas Barrionuevo da Luz
Sorry, I did not see there was already an open issue to handle this problem https://code.djangoproject.com/ticket/22328 Em quarta-feira, 30 de abril de 2014 18h52min41s UTC-3, Fabio Caritas Barrionuevo da Luz escreveu: > > hello, was testing in the latest version of Django[1] directly from Gi

Re: which to use for dynamic data in the database eav or json

2014-05-02 Thread Eddilbert Macharia
Hello Kirby, thanks for the assist. I had actually checked at this posts, I was wondering if i was to use the hstore or json and eav which in the long run would cause less maintaince issues for a data collection system where users create their own forms to collect data. Regards. Eddilbert -

Re: error in "makemessages" command on latest django version (1.8dev)

2014-05-02 Thread Fabio Caritas Barrionuevo da Luz
it was really a bug fixed in https://github.com/django/django/commit/d1799233f46c39379fe429a4ece128d96b128006 Thanks Em quarta-feira, 30 de abril de 2014 18h52min41s UTC-3, Fabio Caritas Barrionuevo da Luz escreveu: > > hello, was testing in the latest version of Django[1] directly from Githu

Re: which to use for dynamic data in the database eav or json

2014-05-02 Thread C. Kirby
If you are using postgres as your data store (And I recommend you do) take a look at the hstore type: http://www.postgresql.org/docs/9.0/static/hstore.html There is a django app to help you work with hstore: https://github.com/djangonauts/django-hstore Here is a discussion by Craig Kerstiens abo

how to break an email list into manageable sizes for emailing

2014-05-02 Thread MikeKJ
def send( self ): c = Context({ "content": self.introductory_text, "user":None, "request":None, "updates": [] })#Section.updates.all()[:20] }) t = loader.get_template('emailer/html/updates.html') subject = self.subject recipients = [] if self.to_all_prin

Re: How to use SQL functions in django?

2014-05-02 Thread Jagdeep Singh
On Friday, 2 May 2014 13:25:56 UTC+5:30, TCM Talk wrote: > > I want to use MariaDB dynamic column in django. How to use SQL functions > in django model? > Raw SQL queries : https://docs.djangoproject.com/en/dev/to

Re: Structuring an API in a large project

2014-05-02 Thread Scot Hacker
On Thursday, May 1, 2014 8:59:25 AM UTC-7, Cezar Jenkins wrote: > > > As you can guess, the views.py file is pretty big and I want to refactor > this out. Currently I have a few options in front of me, the one I'm > leaning towards is to put an 'api/v1' package into each app and use the api > ap

which to use for dynamic data in the database eav or json

2014-05-02 Thread Eddilbert Macharia
Hi guys, I have been trying to decide which approach to use to store dynamic data in the database i.e. data from a survey application in that a user creates there on form like in http://www.wufoo.com/. Storing JSON has its limitation like searching while EAV is generally getting negative revie

Re: There is any POS software made in Django?

2014-05-02 Thread C. Kirby
I don't have much POS experience (at least, not the point-os-sale type) but a quick googling found this https://github.com/maxolasersquad/orthosie https://github.com/maxolasersquad/orthosie> Kirby On Thursday, May 1, 2014 5:59:28 PM UTC-5, Fellipe Henrique wrote: > > Hi, > > I'm started my djang

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
I got this error message trying to fetch the requirements On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > > > > > *Hello guys, i'm a newbie so bear with me :)I have installed python 2

Re: What is the best framework to develop one ERP in django?

2014-05-02 Thread Ovnicraft
On Fri, May 2, 2014 at 8:43 AM, Fellipe Henrique wrote: > Hi everyone! > > I start to build my online version of my company ERP. > DRY and check a great python project, OpenERP. > > But, I try to use Bootstrap Twitter, Foundation.. and all inputs seems to > me bigger.. and we doesn't make a g

Re: Centos 6.5 Python 3.3.x Django 1.6 Apache 2.2

2014-05-02 Thread Brad Pitcher
What does your Apache vhost config look like? You will need to add a WSGIDaemonProcess directive where you can specify the python path for the virtual environment, like so: WSGIDaemonProcess processname user=wsgi group=apache processes=1 threads=10 umask=0022 display-name=displayname python-path=/

Re: Centos 6.5 Python 3.3.x Django 1.6 Apache 2.2

2014-05-02 Thread Tom Evans
On Fri, May 2, 2014 at 12:11 PM, Guillem Liarte wrote: > Hello, > > I have looked through the web in several different especialised forums but I > cannot find the way to do this properly. > > My aim is to have an environment to host Django applications running Centos > 6. So far I have managed to:

Re: What is the best framework to develop one ERP in django?

2014-05-02 Thread Fellipe Henrique
Hi, >>This is a 'general' advice and not specific to Django. Yes, I know that, but I just ask, if anyone knows if any framework to work in these case exists... I don't use Bootstrap *and* Foundation.. I try both. T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4i

Re: What is the best framework to develop one ERP in django?

2014-05-02 Thread Venkatraman S
On Fri, May 2, 2014 at 7:13 PM, Fellipe Henrique wrote: > > I start to build my online version of my company ERP. > > But, I try to use Bootstrap Twitter, Foundation.. and all inputs seems to > me bigger.. and we doesn't make a good screen for the user. > Why do you need both Bootstrap and Found

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
OMG another problem appeared from nowhere the "source activate" command is not working. i can't activate my virtualenv On Friday, 2 May 2014 14:50:12 UTC+1, Andréas Kühne wrote: > > You can always

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You can always see if your shell is running with a virtual environment, by the (env) in front of the prompt. If you check your last screenshot, you will see that you are running in a virtualenvironment there. Regards, Andréas 2014-05-02 15:48 GMT+02:00 Andreas Kuhne : > You are not running your

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You are not running your commands in a virtual environment. You can't run pip outside the virtual environment because that requires root permissions. If you type "sudo pip install -r requirements", it will install the files, but I'm not sure you want to do that. Every shell you open, you have to r

What is the best framework to develop one ERP in django?

2014-05-02 Thread Fellipe Henrique
Hi everyone! I start to build my online version of my company ERP. But, I try to use Bootstrap Twitter, Foundation.. and all inputs seems to me bigger.. and we doesn't make a good screen for the user. I try to use Ext JS, but, I have some difficult to integrate with Django.. Anyone has another

Re: Structuring an API in a large project

2014-05-02 Thread Adam "Cezar" Jenkins
On Thu, May 1, 2014 at 8:15 PM, Mike Dewhirst wrote: > On 2/05/2014 10:29 AM, Adam "Cezar" Jenkins wrote: > >> >> >> >> On Thu, May 1, 2014 at 5:36 PM, Mike Dewhirst > > wrote: >> >> On 2/05/2014 2:16 AM, Adam "Cezar" Jenkins wrote: >> >> On Thu, May 1, 2

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
I've got an error message running the last command. here is the screenshot On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote: > > No, you were in the right locatin before. Look at your last scre

Re: django-mutant

2014-05-02 Thread Eddilbert Macharia
Hi Simon, Sorry for the delayed response, I am trying to create a data collection system. i wanted the user to be able to create their models based on the data they want to collect. i followed the tutorial and also tried the sample application from the tutorial but i got the following error.

Re: Email encoding (DKIM, long lines, etc..)

2014-05-02 Thread notsqrt
Thanks. Ticket created at https://code.djangoproject.com/ticket/22561, with hopefully enough references and elements to make an educated choice. Regards, NotSqrt Le jeudi 1 mai 2014 02:12:56 UTC+2, Russell Keith-Magee a écrit : > > > On Wed, Apr 30, 2014 at 7:13 PM, > wrote: > >> Hi ! >> >> I

Centos 6.5 Python 3.3.x Django 1.6 Apache 2.2

2014-05-02 Thread Guillem Liarte
Hello, I have looked through the web in several different especialised forums but I cannot find the way to do this properly. My aim is to have an environment to host Django applications running Centos 6. So far I have managed to: - Get Centos 6.5 + Ptython 3.3.2 + Django 1.6 (virtual env), run

How to use SQL functions in django?

2014-05-02 Thread tcmtalk
I want to use MariaDB dynamic column in django. How to use SQL functions in django model? -- 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: problem with django, nginx and gunicorn

2014-05-02 Thread 'ReneMarxis' via Django users
Hello Javier also thank you for your answer. However i do know how to implement such a long running task for a customer. I generaly use celery and send out an email with a link on completition of such a task. For simple tasks i use just a cronjob. Most of those jobs run on an separeate machine