Re: web2py like SQLFORM

2015-06-01 Thread James Schneider
I'm not familiar with web2py or SQLFORM, so I can't help there, although I will say that the Django ORM is quite good. There shouldn't be any need for redundant DB calls anywhere. Have you been through the tutorial and other documentation? Doing so well help answer questions like these.

Re: I am pretty Good with Django Now but wondered how to program with python with django

2015-06-01 Thread James Schneider
I've never used IDLE, but from a glance I don't see why not. I'm not sure if/how it will handle the HTML files, but it would probably work fine. I would highly recommend PyCharm, though. The paid version has extra goodies specific to Django, but it works just fine without it. I use it exclusively

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-01 Thread James Schneider
Can you post the full error you're receiving? The 'blah blah blah' is probably the most important. A mention of MIME types likely means that the image is not uploading correctly. Can you actually find the image on the server? Or a record of it in the database? -James On Jun 1, 2015 6:56 PM,

I am pretty Good with Django Now but wondered how to program with python with django

2015-06-01 Thread djangocharm2020
I use django for web dev and have been getting good but started out with python and wondered if i could just program my websites with the idle ? Just curious Im sure you can but want to see if someone has done it and has some tips . Thank you Robert -- You received this message because

web2py like SQLFORM

2015-06-01 Thread Abhijit Chatterjee
Hello everyone. I am new in django but I have been using web2py for sometime. Do we have anything like SQLFORM that automatically renders the ORM or we have redundantly call each tables and fields? -- You received this message because you are subscribed to the Google Groups "Django users"

django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-01 Thread hemulin
(noob warning) I wanted to use summernote within a model but without using the default modelForm. I ended up mixing the two like this (can't have widgets on model field...): In models I have class Article(models.Model): """Represents a wiki article""" title =

Re: Where to now??

2015-06-01 Thread Mike Dewhirst
On 2/06/2015 4:28 AM, Steve Burrus wrote: *Well I successfully instsalled Dj and ango 1.8*. After doing the "pip freeze" command in my Win 10 beta command prompt I see that I g ot that version of Django installed. But where do I go from here? How do i launch the server It is probably best to

Re: need to upgrade django1.4.5-->django1.5, but apt-get install django tells me i'm running latest version

2015-06-01 Thread Mike Dewhirst
On 2/06/2015 3:17 AM, arthur sherman wrote: i get the following errors in the apache2 error.log: VersionConflict: (Django 1.4.5 (/usr/lib/python2.7/dist-packages), Requirement.parse('Django>=1.5')) but when i attempt upgradinging django apt-get install reports that i'm at the latest version:

Re: Abridged summary of django-users@googlegroups.com - 16 updates in 8 topics

2015-06-01 Thread Marcela Campo
Hi Time, Thank you for your help. That was indeed the issue. I followed the procedure for the Postgis hard upgrade and all worked fine. Thanks! Marcela On Sat, May 30, 2015 at 10:04 AM, wrote: > django-users@googlegroups.com >

Re: Issues Upgrading to django 1.8 and migrating from south

2015-06-01 Thread Marcela Campo
Hi Tim, many thanks for your help. That, indeed was the issue. Doing a hard upgrade solved it. Cheers! Marcela -- 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

Where to now??

2015-06-01 Thread Steve Burrus
*Well I successfully instsalled Django 1.8*. After doing the "pip freeze" command in my Win 10 beta command prompt I see that I g ot that version of Django installed. But where do I go from here? How do i launch the server and create my virtual environment?* -- You received this message

Re: need to upgrade django1.4.5-->django1.5, but apt-get install django tells me i'm running latest version

2015-06-01 Thread Andreas Kuhne
2015-06-01 19:17 GMT+02:00 arthur sherman : > i get the following errors in the apache2 error.log: > > VersionConflict: (Django 1.4.5 (/usr/lib/python2.7/dist-packages), > Requirement.parse('Django>=1.5')) > > but when i attempt upgradinging django apt-get install

need to upgrade django1.4.5-->django1.5, but apt-get install django tells me i'm running latest version

2015-06-01 Thread arthur sherman
i get the following errors in the apache2 error.log: VersionConflict: (Django 1.4.5 (/usr/lib/python2.7/dist-packages), Requirement.parse('Django>=1.5')) but when i attempt upgradinging django apt-get install reports that i'm at the latest version: apt-get install python-django Reading

Re: Need some suggestions on picking up the best combination

2015-06-01 Thread Scot Hacker
On Monday, June 1, 2015 at 4:03:46 AM UTC-7, William Dai wrote: > > > > Any comments on above options appreciated. This would help me decide the > right way to go since once we commit, we would need to stick to the > decision for long time. The project is a longterm project and could grow >

Re: Django with nginx - Waitingtime is more How to reduce

2015-06-01 Thread Tom Evans
On Mon, Jun 1, 2015 at 3:01 PM, Anandhakumar Radhakrishnan wrote: > Am using Django 1.7, nginx You're only using nginx to proxy to a backend webserver and serve static files. What is the backend webserver that is hosting django? > ... > > In the

Re: Django with nginx - Waitingtime is more How to reduce

2015-06-01 Thread Gagaro
Hi, You can use the Django Debug Toolbar to see actual time taken by your queries/templates/... Depending on what is taking time for you, there may be several solutions. If you have issues with your queries, you should take a look

Django with nginx - Waitingtime is more How to reduce

2015-06-01 Thread Anandhakumar Radhakrishnan
Am using Django 1.7, nginx My Django view page having dictionary to render to html. Content = { ..} r = render_to_response('tr/my-content.html',Content, context_instance= RequestContext(request)) ; t2 = datetime.now() ; print "Elapsed: %.3f" % (t2 -t1).total_seconds() ; print

Re: Are data created by setUpTestData shared by all tests ?

2015-06-01 Thread Gagaro
For information, I went from 30 seconds (with setUp) to 13 seconds with setUpTestData. Thanks to the persons who did this feature! On Monday, 1 June 2015 16:04:12 UTC+2, Gagaro wrote: > > Indeed, it was that obvious. > > class OrderBugTest(TestCase): > > @classmethod > def

Re: Are data created by setUpTestData shared by all tests ?

2015-06-01 Thread Gagaro
Indeed, it was that obvious. class OrderBugTest(TestCase): @classmethod def setUpTestData(cls): cls.order = OrderFactory() cls.order.go_available() cls.order.go_suspended() def setUp(self): self.order.refresh_from_db() def test_1(self):

Re: Are data created by setUpTestData shared by all tests ?

2015-06-01 Thread Tim Graham
It looks like you may be using in-memory models instead of saving them to the database? In case your go_available() method does save the OrderFactory instance, you'll still need to refresh the object from the database using Model.refresh_from_db() in test_2(). On Monday, June 1, 2015 at

Re: Django ORM Interaction between order_by(), distinct(), and filter()

2015-06-01 Thread Suriya Subramanian
I found a way to express the second query in the ORM. Person.objects.filter(sex='F', pk__in=tallest_people) Thanks, Suriya On Monday, June 1, 2015 at 12:13:49 PM UTC+5:30, Suriya Subramanian wrote: > > I have a question about how order_by(), distinct(), and filter() interact. > This question is

non DB related fiels in model to appear in a form

2015-06-01 Thread wigmbhmtl
Hello all, how can I add a string in the model that would appear in the output form exactly on the position from the model as text e.g. in a Paragraph. Is it possible to create a non DB related Field in models for that? Example how I would like it to be : in models.py class

Re: debugging with pycharm

2015-06-01 Thread Bowman han
Thx,that works. On Tuesday, April 23, 2013 at 1:58:51 AM UTC+8, Nikolas Stevenson-Molnar wrote: > > I assume you're running it in the debugger? Make sure you regular server > isn't still running. Also, make sure your break point is on a line a line > which does something (e.g., *not* on a

Need some suggestions on picking up the best combination

2015-06-01 Thread William Dai
Guys, I am working on a marketplace like project and currently am evaluating the possibilities of integration. What I am looking for: An e-commerce which also works well with a CMS A phpBB style forum which also work well with other components and use same login. forum can be simple. Friendly

Are data created by setUpTestData shared by all tests ?

2015-06-01 Thread Gagaro
Hi, I have an hard time understanding how I am supposed to use setUpTestData. The documentation isn't very clear about it (https://docs.djangoproject.com/en/1.8/topics/testing/tools/#django.test.TestCase.setUpTestData). "The class-level atomic block described above allows the creation of

Re: django - class based view store post data

2015-06-01 Thread James Schneider
Make sure to read the documentation on CSRF protection: http://www.django-rest-framework.org/topics/ajax-csrf-cors/#csrf-protection -James On May 31, 2015 11:47 PM, "Shekar Tippur" wrote: > James, >> > > Thanks for the response. I followed your instructions and took out the >

Re: django - class based view store post data

2015-06-01 Thread Shekar Tippur
> > James, > Thanks for the response. I followed your instructions and took out the overriding of post and get methods. However, as I am testing the app using curl, I ended up with CSRF verification failed. Request aborted. - Shekar -- You received this message because you are subscribed

Django ORM Interaction between order_by(), distinct(), and filter()

2015-06-01 Thread Suriya Subramanian
I have a question about how order_by(), distinct(), and filter() interact. This question is applicable only to the PostgreSQL backend since the Queryset is constructed by passing filed arguments to distinct(). https://docs.djangoproject.com/en/1.8/ref/models/querysets/#distinct In the other