Python/Django based Enterprise framowrk

2014-05-01 Thread Kenan Bek
Dear Django users, I am working on ERP solution for my company and I used to use Django as a web application framework. To automatise process of creating CRUD forms I use Django Admin with Django Suit package. It works pretty well. BUT it does not gives features for full customisation because

Version number comparison and beta

2014-05-01 Thread Kevin Golding
Hi all I'm trying to update some existing code so that it will be compatible with 1.7, in particular the use of settings.AUTH_USER_MODEL instead of get_user_model(). Given the differences I'm going to have to check the version numbers and then have two alternatives eg: if

Re: Version number comparison and beta

2014-05-01 Thread Xavier Ordoquy
Hi Kevin, Le 1 mai 2014 à 08:36, Kevin Golding a écrit : > What is the best practice for doing version number comparisons taking into > account the existence of beta version numbers? What I'm doing with Django is: django.VERSION <= (1, 7) I can't remember

Re: Python/Django based Enterprise framowrk

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 12:24 PM, Kenan Bek wrote: > > So, now, I am looking for frameworks based on Django which will give > features for following issues: > > Django itself is a framework :) > - rich CRUD views generation (list/table, details, edit and create forms) >

Re: Python/Django based Enterprise framowrk

2014-05-01 Thread Kenan Bek
*and full customisation of code/view (I think it should generate python codes rather than generate dynamic views)* I mean for example if we use Django's Admin it will generate Dynamic view and it is hard to customise it. I need something which will generate forms like Django Admin but with

Re: Python/Django based Enterprise framowrk

2014-05-01 Thread Mario Gudelj
You'll need to create your own admin in that case. For 90% of my projects I've unfortunately had to do that. You can find a good admin console kit, perhaps something based on bootstrap and use the components to create whatever you want. I usually use one called Metronic. On 01/05/2014 7:43 pm,

Re: The Django 1.7 tees!

2014-05-01 Thread Sithembewena Lloyd Dube
Hi Russell, Thank you for the feedback. I'm hoping that others may show interest so that the campaign could be re-opened. I will be watching this closely :) Kind regards, Sithu On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee wrote: > Hi Sithu, > > Unfortunately,

problem with django, nginx and gunicorn

2014-05-01 Thread 'ReneMarxis' via Django users
Hello i have some question on deploying an django app. I'm using nginx and gunicorn to publish one django app. For gunicorn i wanted to use gevent, because there are some calls to the app, that can take up to 5 minutes to finish (generating pdfs) Firsts question is more an understanding

Django on App engine

2014-05-01 Thread Venkatraman S
Hi, Has anyone or is anyone running a reasonably large django webapp on GAE? Looks like it has becomereasonably easier now compare to what it was a few years back. Any experiences? regards, Venkat -- You

Re: problem with django, nginx and gunicorn

2014-05-01 Thread Erik Cederstrand
Den 01/05/2014 kl. 13.11 skrev 'ReneMarxis' via Django users : > Now to my problem... Doing one blocking call to my app, and having only on > worker, blocks my entire application. > In the gunicorn logs (startup) i can see, that gevent is used, but the calls >

select_related reverse?(!)

2014-05-01 Thread Andreas Bloch
Okay, I'm a little confused here about using select_ralated... Can you only run select_related on a table that HAS a foreign key not a table that IS a foreign key? What if I want to go: SELECT * FROM product LEFT JOIN review on product.id = review.product_id LEFT JOIN comments ON product.id =

Re: problem with django, nginx and gunicorn

2014-05-01 Thread 'ReneMarxis' via Django users
Hello Erik thanks for your responce! I started reading a little bit related to GIL. I think this is the root of my problem. I'm using xhtml2pdf to generate some large pdf's (up to 200 pages). I do know i have to rewrite this code to run in background (e.g. using celery). However i want to

Re: select_related reverse?(!)

2014-05-01 Thread alTus
Hi. select_related is used for folloing foreign keys. So if u have, say, product and its producer field in it u can do smth like: Product.objects.select_related('producer') and in ur templates accessing product.producer won't hit the database. Notice that here we have a relationship where only

Re: select_related reverse?(!)

2014-05-01 Thread Venkatraman S
Instead of spoon-feeding you, I would recommend using DDT and check out the query that is generated and whether if it satisfies your use-case. By this, you will know how exactly select_related works and also the number of queries that gets fired in the page and what happens once you use this. On

Structuring an API in a large project

2014-05-01 Thread Cezar Jenkins
Right now I have a large project with an equally large API (done using django rest framework). The current structure is something like this: api |-urls.py |-models.py | v1 |-views.py |-serializers.py |-permissions.py |-tests.py etc As you can guess,

Re: Structuring an API in a large project

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins wrote: > Right now I have a large project with an equally large API (done using > django rest framework). The current structure is something like this: > > api > |-urls.py > |-models.py > | > v1 > |-views.py

Re: Structuring an API in a large project

2014-05-01 Thread Adam "Cezar" Jenkins
On Thu, May 1, 2014 at 11:10 AM, Venkatraman S wrote: > > > On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins wrote: > >> Right now I have a large project with an equally large API (done using >> django rest framework). The current structure is something

Re: problem with django, nginx and gunicorn

2014-05-01 Thread Javier Guerra Giraldez
On Thu, May 1, 2014 at 9:06 AM, 'ReneMarxis' via Django users wrote: > I started reading a little bit related to GIL. I think this is the root of > my problem. I'm using xhtml2pdf to generate some large pdf's (up to 200 > pages). no, the problem isn't the GIL.

Jquery Calendar with Django

2014-05-01 Thread coded kid
Hello, I would like to know where I can get a jquery calendar that's similar to airbnb's own. Kindly help me out. -- 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

Re: Structuring an API in a large project

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 9:46 PM, Adam "Cezar" Jenkins wrote: > On Thu, May 1, 2014 at 11:10 AM, Venkatraman S wrote: > >> >> >> On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins wrote: >> >>> Right now I have a large project with

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

2014-05-01 Thread Fred DJar
Iv'e run it on ubuntu terminal but still not working On Tuesday, 29 April 2014 14:35:39 UTC+1, Rene Zelaya wrote: > > Hi Fred, > > Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not > that familiar with the Windows terminal > > > On Monday, April 28, 2014 10:10:29 AM

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

2014-05-01 Thread Lee
Please be more specific about your problem as its difficult to help when we don't know exactly what you are seeing. Have you managed to activate your virtualenv on ubuntu? If not, what specific error are you getting? I see two problems here so far, regarding the import error, that means you

Re: Structuring an API in a large project

2014-05-01 Thread Mike Dewhirst
On 2/05/2014 2:16 AM, Adam "Cezar" Jenkins wrote: On Thu, May 1, 2014 at 11:10 AM, Venkatraman S > wrote: On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins > wrote: Right now I

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

2014-05-01 Thread Fred DJar
Thank you for your response i've made a screenshot to illustrate clearly what happening btw i'm not familiar with virtualenv in ubuntu i've only used it on windows and in order to activate the virtualenv i just run the activate the command. maybe this is not the case in ubuntu!! maybe it

There is any POS software made in Django?

2014-05-01 Thread Fellipe Henrique
Hi, I'm started my django app, it's a POS software to control receivable, invoice of the costumer. There`s any software like that made using Django? Cheers -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

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

2014-05-01 Thread Lee
Enter the following command from the bin folder: *source activate* Thanks 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.7 > and django 1.6 on my desktop (ubuntu 14)but i can't run the application or >

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

2014-05-01 Thread Fred DJar
Lol, thanks that was super easy but now i have another problem, i'm missing some packages even though i'm in the virtualenv here is a screenshot demonstration On Monday, 28 April 2014 11:03:40

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

2014-05-01 Thread Lee
Next command: pip install -r requirements >From the directory where the requirements file is of course... And assuming >the requirements file has all the requirements of whatever you are trying to >run in it -- You received this message because you are subscribed to the Google Groups

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

2014-05-01 Thread Lee
Also be aware that from the stack trace, it looks like you have django installed into the global site packages rather than your virtualenv. The main point of virtualenv is to avoid that and have isolated environments. But it's not really a problem as long as you are aware of the fact that you

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

2014-05-01 Thread Fred DJar
so i'm in the directory /usr/local/lib/python2.7/dist-packages/django/core/management and now i should run the command pip install -r requirements and replace requirements with the missing file (for example base.py) is that it?? *i'm sorry if my questions seems dumb* On Friday, 2 May 2014

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

2014-05-01 Thread Fred DJar
yes i know because i've installed django before trying to work the virtualenv problem On Friday, 2 May 2014 01:05:20 UTC+1, Lee wrote: > > Also be aware that from the stack trace, it looks like you have django > installed into the global site packages rather than your virtualenv. The > main

There's any package to integrate jquery validation in my model forms?

2014-05-01 Thread Fellipe Henrique
There's any package to integrate jquery validation in my model forms? Cheers! T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge' *Blog: http://fhbash.wordpress.com/ * *GitHub:

Re: Structuring an API in a large project

2014-05-01 Thread Adam "Cezar" Jenkins
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, 2014 at 11:10 AM, Venkatraman S > > wrote: >> >> >> >> On Thu, May 1, 2014 at 9:29 PM, Cezar

Re: Structuring an API in a large project

2014-05-01 Thread Mike Dewhirst
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, 2014 at 11:10 AM, Venkatraman S

Re: There's any package to integrate jquery validation in my model forms?

2014-05-01 Thread Venkatraman S
On Fri, May 2, 2014 at 5:47 AM, Fellipe Henrique wrote: > There's any package to integrate jquery validation in my model forms? > > A side note : crispy-forms and parsley does most of the lifting w.r.t forms for me. -- You received this message because you are subscribed to