Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-14 Thread Andrew Farrell
One tool for debugging that I would actually use isn't actually a debugger although ipdb is great . If you decide to go with python/django, I would strongly consider using the book Test Driven Web Development with Python

Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-14 Thread James Schneider
I came upon similar crossroads several years ago. Granted, I'm not a programmer by trade, but I do have several personal projects that I work on. I had done some large module development for Drupal in PHP over several years, and once I reached the point where I was fighting to override Drupal more

Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-14 Thread Jonathan Baker
Have you written any Python or Ruby? If so, do you have a preference? Both are high-level languages, and the dominant web framework for each (Django and Rails) are mature and stable. I'd at least read and write some code for each and see if the syntax of the language and the semantics of the

Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-14 Thread Rotimi Ajayi-Dopemu
Hi all, I am sure this question has been beaten into the ground but hopefully I can get some specific insight so I don't waste time in the future. Thanks in advance. The question: I have a year to learn a new programming language for web application development. I will be learning concurrently

Re: Django: "Fake" multiple inheritance

2015-08-14 Thread Daniel H
Hi Michael. First of all, setting the pk to the pk of a different model will do nothing. You can do this however, using Foreign Keys restaurant = models.ForeignKey('Restautant') Then declare a new hotel

Possible Bug when using exclude on a GenericForeignKey / GenericRelation query.

2015-08-14 Thread Daniel H
Hi everyone. I've been using django for almost a year now, but it's my first time posting here. Anyway, I'm encountering an error which I think might be a bug. I've yet to try and replicate it as I thought posting here would be the better first step, as I might just be doing something

Re: DRF without login

2015-08-14 Thread Prabath Peiris
I set this in my setting.py file and it worked REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [], 'DEFAULT_PERMISSION_CLASSES': [], } Thank You Prabath On Thursday, August 13, 2015 at 5:11:35 PM UTC-4, Xavier Ordoquy wrote: > > > Le 13 août 2015 à 23:06, Prabath Peiris

Instantiating the SQL implementation of Aggregates in Django 1.8

2015-08-14 Thread Ramana Subramanyam
I've been working on updating the existing code base that was using Django 1.6 to Django 1.8. In the process, I've been facing a particular problem with aggregates. In this code, *PGDAggregate* class has a method *add_to_query* which is intended to instantiate the SQL implementation of the

Re: how to use the sites framework?

2015-08-14 Thread Avraham Serour
This would be one site with 3 routes, just create 3 views and 3 entries on URLs.py, you don't need the sites framework On Thu, Aug 13, 2015, 11:49 PM derek riemer wrote: > Hi, > I have 3 apps. A base site, with a main menu, a personal website with a > biography, and a

Django-tastypie checking of csrf token in requests

2015-08-14 Thread Rene Zelaya
Hi everyone, We have a REST API built using django-tastypie, which most of our users access through our web application. However, we do have users that make requests to the API programmatically (using the python 'requests' library, for example) and use an OAuth token to do so (we have already

Re: Static version of a Django website ?

2015-08-14 Thread Stefano Probst
Hi, i only know a generic way via HTTrack . If you want a copy of the rendered HTML. -- 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

Re: Can u tell me how to build restful api project in django

2015-08-14 Thread Rene Zelaya
I have found django-tastypie very useful to create a REST API: https://github.com/django-tastypie/django-tastypie Here are the docs: http://django-tastypie.readthedocs.org/en/latest/index.html#quick-start Best, Rene On Friday, August 14, 2015 at 10:22:40 AM UTC-4, HARSHIT GARG wrote: > > I am

Django: "Fake" multiple inheritance

2015-08-14 Thread michael
Hi all, suppose I have the following model structure from django.db import models class Place(models.Model): name = models.CharField(max_length=50) class Restaurant(Place): ... class Hotel(Place): ... I already have a Restaurant in my

Re: Can u tell me how to build restful api project in django

2015-08-14 Thread Timothy W. Cook
Did you follow these instructions? http://www.django-rest-framework.org/tutorial/quickstart/ Spend the time on the tutorial. It will save you time in the long run. On Fri, Aug 14, 2015 at 10:59 AM, HARSHIT GARG wrote: > I am getting the following error: > >

Can u tell me how to build restful api project in django

2015-08-14 Thread HARSHIT GARG
I am getting the following error: ImportError: rest_framework doesn't look like a module path -- 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

AWS Ops Works - Setup DJango

2015-08-14 Thread Steve McAtee
Hello, I'm a bit of a noob when it comes to DJango. I am trying to deploy a zipped django application into AWS OpsWorks. I am using: https://github.com/alecpm/opsworks-web-python I have built the stack and get it to start and install Django/python. What I am stuck in is how do I take a Zip

Re: Django Community Blog not adding Posts from feed

2015-08-14 Thread Tim Graham
It was a bug on our end, please see https://code.djangoproject.com/ticket/25261 for resolution, and sorry for the inconvenience. On Monday, August 10, 2015 at 10:38:28 AM UTC-4, Luciano Ferrari wrote: > > Hi everyone, > > Last week I added the RSS Feed to the Django Community Blog which was >

Re: How to pass a string as url's parameter

2015-08-14 Thread I . Dié
Thanks you all Snejy and James. Regards > -- 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 group,

Re: How to pass a string as url's parameter

2015-08-14 Thread Snezhana Spasova
You can do fruit = get_object_or_404(Fruit, name=fruit_name) but i wont recommend doing this with field that is not unique because it basically resolves to Fruit.objects.get(name=fruit_name) which will raise error if there are two objects with the same name... Furthermore you have choices..

Re: How to pass a string as url's parameter

2015-08-14 Thread Snezhana Spasova
If I understand the question correct.. you can do fruit = get_object_or_404(Fruit, name=fruit_name) even if its not SlugField. I dont recommend doing that with field that doesn't have unique=True because error will be raised if there are more than one objects with this name. (This equals

Re: How to pass a string as url's parameter

2015-08-14 Thread James Schneider
You probably don't want to use the name directly, you should probably look at creating a slug from the name and store it in a SlugField on your model. https://docs.djangoproject.com/en/1.8/ref/models/fields/#slugfield https://docs.djangoproject.com/en/1.8/ref/utils/#module-django.utils.text Your