Heroku error after deployment of Django API

2021-06-10 Thread Rudrakshi soni
My API gets deployed but when I check the endpoints of the URL then it's showing an error that tables are missing even after running the Heroku migrations also. I am using the default SQLite db of Django. -- You received this message because you are subscribed to the Google Groups "Django user

Re: Postman-django Api help

2019-09-13 Thread Tosin Ayoola
Yes @ babtunde I'm referring to postman Api On Sep 13, 2019 14:50, "Babatunde Akinyanmi" wrote: > Are you talking of this postman api? > https://docs.api.getpostman.com/?version=latest > > On Thu, 12 Sep 2019, 14:31 Tosin Ayoola, wrote: > >> Halo >> Good day sorry I wan work on a airline ticke

Re: Postman-django Api help

2019-09-13 Thread Babatunde Akinyanmi
Are you talking of this postman api? https://docs.api.getpostman.com/?version=latest On Thu, 12 Sep 2019, 14:31 Tosin Ayoola, wrote: > Halo > Good day sorry I wan work on a airline tickets reservations project using > postman Api, but I've never used that before and can't seem to find any > res

Re: Postman-django Api help

2019-09-13 Thread Olawumi Fadero
Check YouTube videos You'll find tutorials on it. On Thu, Sep 12, 2019, 2:31 PM Tosin Ayoola Halo > Good day sorry I wan work on a airline tickets reservations project using > postman Api, but I've never used that before and can't seem to find any > resourceful material online, can anyone be

Postman-django Api help

2019-09-12 Thread Tosin Ayoola
Halo Good day sorry I wan work on a airline tickets reservations project using postman Api, but I've never used that before and can't seem to find any resourceful material online, can anyone be kind enough to help me out. Thanks -- You received this message because you are subscribed to the Goog

Django API requests

2019-01-31 Thread Alison
Hi all, I use Django mostly and recently started working with APIs, I am trying to use the cat API https://cataas.com/ and get cats by tag like cute, brown ... from within Django but I seem to be getting errors even when I try with postman testing tool, as well as after authenticating with my

Re: Simple django api

2018-06-08 Thread Jason
how to break a problem down into parts and solve them. when you get stuck, ask a specific question about this thing, rather than a general 'show me how to do this' request. In addition, a simple google search for "django api tutorial" returns thousands of quality results, includ

Re: Simple django api

2018-06-07 Thread Django Girls Bauchi
t;> bau...@djangogirls.org> wrote: >> >>> Hello >>> Response pls >>> >>> On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi < >>> bau...@djangogirls.org> wrote: >>> >>>> Holla >>>> Wants to cr

Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
Girls Bauchi >> wrote: >> >>> Holla >>> Wants to create a simple django api, that send specific data(using >>> postman) and receive response. Yeah its simple, but simple tend hard on me >>> this days, anyone to help out, urgently. >>> >&

Re: Simple django api

2018-06-05 Thread Satyam Soni
jango Girls Bauchi >> wrote: >> Hello >> Response pls >> >>> On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi >>> wrote: >>> Holla >>> Wants to create a simple django api, that send specific data(using postman) >>> and recei

Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
Wants to create a simple django api, that accept specific data(using postman) and send response. Yeah its simple, but simple tend hard on me this days, anyone to help out, urgently. On Wed, Jun 6, 2018, 3:26 AM Dylan Reinhold wrote: > What is your specific question. > > On Tue, Jun 5

Re: Simple django api

2018-06-05 Thread Mike Dewhirst
mailto:bau...@djangogirls.org>> wrote: Holla Wants to create a simple django api, that send specific data(using postman) and receive response. Yeah its simple, but simple tend hard on me this days, anyone to help out, urgently. Thanks -- You received this message because you are s

Re: Simple django api

2018-06-05 Thread Dylan Reinhold
What is your specific question. On Tue, Jun 5, 2018 at 6:35 PM, Django Girls Bauchi wrote: > Hello > Response pls > > On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi > wrote: > >> Holla >> Wants to create a simple django api, that send specific data(using &g

Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
Hello Response pls On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi wrote: > Holla > Wants to create a simple django api, that send specific data(using > postman) and receive response. Yeah its simple, but simple tend hard on me > this days, anyone to help out, urgently. > >

Simple django api

2018-06-05 Thread Django Girls Bauchi
Holla Wants to create a simple django api, that send specific data(using postman) and receive response. Yeah its simple, but simple tend hard on me this days, anyone to help out, urgently. Thanks -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Django api call in view unable to save for foreign key userId

2018-01-30 Thread Etienne Robillard
Hi, Le 2018-01-29 à 22:31, cherngyo...@gmail.com a écrit : {"patientId":["This field is required."]}. This is a generic form validation error. I suspect the problem is with the following code: |classBookApptSerializer(serializers.ModelSerializer):patientId =MyUserSerializer(many=False)|

Re: Django API CSRF Issues - Need Help

2016-06-01 Thread Neeraj Gahlot
aving a heck of a time and we can't figure out if the > issue is something set up on the server or on my front end code. I'm hoping > that the issue might be obvious to someone here. > > First of all, you can access the Django API code in the repository code > here

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
That's really interesting. Hmm... Thanks for the feedback. On Sat, May 21, 2016 at 9:03 AM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Sat, May 21, 2016 at 08:55:04AM -0700, Chris Troutner wrote: > > Yep, no luck. I got the cookie plugin integrated, but it didn't make any > > di

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Michal Petrucha
On Sat, May 21, 2016 at 08:55:04AM -0700, Chris Troutner wrote: > Yep, no luck. I got the cookie plugin integrated, but it didn't make any > difference. The problem isn't with the *retrieval* of the CSRF token, it's > with the *submission*. > > If you bring up this code: > https://github.com/chris

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
Yep, no luck. I got the cookie plugin integrated, but it didn't make any difference. The problem isn't with the *retrieval* of the CSRF token, it's with the *submission*. If you bring up this code: https://github.com/christroutner/rpiovn/blob/unstable/public/js/app/views/NRPUsersView.js And scrol

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
I was logged in yes, but I also noticed that when I tried to get the cookie from the CMS side, it would retrieve a different CSRF token, as though I wasn't logged in. Hence the copy and paste I showed in the video. I'm trying to get this cookie plugin integrated into my code. Maybe it will have be

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread bobhaugen
Chris, I understood you were logged into the django system when you tried these posts. Correct? I thought that would cover authentication thru DRF. But I am also a noob to Javascript client post -> DRF server. -- You received this message because you are subscribed to the Google Groups "Django

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
I linked to that page in the original posting. That page describes what we're trying to do, but there seems to be a disconnect between what is specified and what is actually happening. As near as I can tell, I have satisfied the CSRF requirements documented on that page, but I still can't seem

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread François Schiettecatte
interface for creating new users, > which requires the passing of a CSRF token for authentication. I'm having a > heck of a time and we can't figure out if the issue is something set up on > the server or on my front end code. I'm hoping that the issue might be &

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
gt; authentication. I'm having a heck of a time and we can't figure out if the >> issue is something set up on the server or on my front end code. I'm hoping >> that the issue might be obvious to someone here. >> >> First of all, you can access the Django A

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Daniel Roseman
'm having a heck of a time and we can't figure out if the > issue is something set up on the server or on my front end code. I'm hoping > that the issue might be obvious to someone here. > > First of all, you can access the Django API code in the repository code > here:

Django API CSRF Issues - Need Help

2016-05-20 Thread Chris Troutner
y front end code. I'm hoping that the issue might be obvious to someone here. First of all, you can access the Django API code in the repository code here: https://github.com/valnet/valuenetwork/tree/master/valuenetwork/api My front end code is written in JavaScript can be viewed in it&

Re: Architectural suggestions for (Django + API)

2015-08-17 Thread julio . lacerda
Hi Carl, > I don't quite understand why the situation you describe requires > duplicating models files. Is the canonical data storage now in Project B > instead of Project A, and Project A gets the data via Project B's REST > API? In that case, why does Project A need those models anymore?

Re: Architectural suggestions for (Django + API)

2015-08-17 Thread julio . lacerda
Hi James, I'm going to build a separated instance to provide only REST services to be consumed by Project A. It's ok to use the same views to provide a REST interface in API but in this case I need to remove models from project A, right? Thank you very much! Em domingo, 16 de agosto de 2015 2

Re: Architectural suggestions for (Django + API)

2015-08-16 Thread Carl Meyer
Hi Julio, On 08/16/2015 04:59 PM, julio.lace...@m2agro.com.br wrote: > I created a project using Django (let's call this Project A) and now I > decided to start a new one but this time it is an API using Django REST. > So, for now I have to refactor Project A to consume data from API, but > in ord

Re: Architectural suggestions for (Django + API)

2015-08-16 Thread James Schneider
Are you adding REST functionality to an existing project? Or will you be using a separate instance to provide only REST services and maintain two different code bases? I believe you can use the django-rest-framework to utilize the same views (literally) to provide a REST interface, so you may not

Architectural suggestions for (Django + API)

2015-08-16 Thread julio . lacerda
Hey guys, I have a question about an architectural issue and I would like to hear some suggestions about it. I created a project using Django (let's call this Project A) and now I decided to start a new one but this time it is an API using Django REST. So, for now I have to refactor Project A

Re: Unable to work with Django API

2011-08-26 Thread Yves S. Garret
Yeah, I just resolved that issue. And yes, I messed up my DB setup. It works now. I didn't set it up properly for sqllite. On Aug 26, 3:06 pm, Jirka Vejrazka wrote: > Hi there, > >   your database is not set up properly - are you sure you went through > the "database setup" section of the tutor

Re: Unable to work with Django API

2011-08-26 Thread Jirka Vejrazka
Hi there, your database is not set up properly - are you sure you went through the "database setup" section of the tutorial? HTH Jirka -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Unable to work with Django API

2011-08-26 Thread Yves S. Garret
Hi all, This is my issue: After I installed Django and got it somewhat working, I started down this tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01/ All was going well until I hit the part called "Playing with the API". I'm doing this in Windows 7 Enterprise. C:\Users\foobar\

Re: Django API

2011-07-12 Thread Tom Evans
On Tue, Jul 12, 2011 at 10:23 AM, Jonas Geiregat wrote: > Hello, > > I really love django's documentation. It covers a lot of ground and is really > well written. > I do have one problem with it. It might be best explained with an example. > > I want to see all methods and properties of the reque

Re: Django API

2011-07-12 Thread Thomas Guettler
On 12.07.2011 11:23, Jonas Geiregat wrote: > Hello, > > I really love django's documentation. It covers a lot of ground and is really > well written. > I do have one problem with it. It might be best explained with an example. > > I want to see all methods and properties of the request parame

Django API

2011-07-12 Thread Jonas Geiregat
Hello, I really love django's documentation. It covers a lot of ground and is really well written. I do have one problem with it. It might be best explained with an example. I want to see all methods and properties of the request parameter in the view. Search the docs for "request" doesn't hel

Re: Django API efficient enough for filtering tens of millions of records?

2011-02-20 Thread Sithembewena Lloyd Dube
Thanks Thomas :) On Tue, Feb 15, 2011 at 11:16 AM, Thomas Weholt wrote: > FYI: release version 0.5.0 of DSE yesterday. Source is available at > https://bitbucket.org/weholt/dse and pypi. > > Regards, > Thomas Weholt > > On Tue, Feb 15, 2011 at 10:10 AM, Sithembewena Lloyd Dube > wrote: > > Hi Ev

Re: Django API efficient enough for filtering tens of millions of records?

2011-02-15 Thread Thomas Weholt
FYI: release version 0.5.0 of DSE yesterday. Source is available at https://bitbucket.org/weholt/dse and pypi. Regards, Thomas Weholt On Tue, Feb 15, 2011 at 10:10 AM, Sithembewena Lloyd Dube wrote: > Hi Everyone, > > Coming back weeks later, to say thank you for your contributions. I got > quit

Re: Django API efficient enough for filtering tens of millions of records?

2011-02-15 Thread Sithembewena Lloyd Dube
Hi Everyone, Coming back weeks later, to say thank you for your contributions. I got quite sidetracked from this task, but I should report back on this soon. Thank you! On Wed, Jan 19, 2011 at 10:05 AM, Thomas Weholt wrote: > Bulk inserts are the way the go if you can. When inserting a bunch of

Re: Django API efficient enough for filtering tens of millions of records?

2011-01-19 Thread Thomas Weholt
Bulk inserts are the way the go if you can. When inserting a bunch of data, avoid using the django orm. Do it in plain SQL. The overhead of creating django orm model instances is way too expensive. Alltough it may not be bulk insert the sense Nick mentioned above I wrote DSE [ http://pypi.python.or

Re: Django API efficient enough for filtering tens of millions of records?

2011-01-18 Thread Nick Arnett
On Tue, Jan 18, 2011 at 12:04 PM, Sithembewena Lloyd Dube wrote: > Hi all, > > I am building a search app. that will query an API. The app. will also > store search terms in a very simple table structure. > > Big question: if the app. eventually hit 10 million searches and I was > storing every s

Re: Django API efficient enough for filtering tens of millions of records?

2011-01-18 Thread Russell Keith-Magee
On Wed, Jan 19, 2011 at 4:04 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I am building a search app. that will query an API. The app. will also store > search terms in a very simple table structure. > > Big question: if the app. eventually hit 10 million searches and I was > storing every sin

Django API efficient enough for filtering tens of millions of records?

2011-01-18 Thread Sithembewena Lloyd Dube
Hi all, I am building a search app. that will query an API. The app. will also store search terms in a very simple table structure. Big question: if the app. eventually hit 10 million searches and I was storing every single search term, would the table hold or would I run into issues? Also, is i

Re: Is slugify available as a Django API call?

2009-09-13 Thread David Zhou
On Sun, Sep 13, 2009 at 9:07 PM, W.P. McNeill wrote: > the web, but this seems error prone.  The right way to do it would > seem to be to use the slugify code that is already in Django. > What is the best way to slugify an arbitrary string using a Python > call? from django.template.defaultfil

Is slugify available as a Django API call?

2009-09-13 Thread W.P. McNeill
fact that I can find lots of Django snippets online in which people are rolling their own slugify function makes me think that this function is not part of the Django API. What is the best way to slugify an arbitrary string using a Python call? --~--~-~--~~~---~--~

Re: converting sql command to django api query

2008-12-28 Thread Alan
Thanks, this is a very interesting way. I will give a try. Cheers, Alan On Mon, Dec 29, 2008 at 04:48, join.toget...@gmail.com < join.toget...@gmail.com> wrote: > > In your model definition, you can specify choices for each field. > http://docs.djangoproject.com/en/dev/topics/db/models/#field-op

Re: converting sql command to django api query

2008-12-28 Thread join.toget...@gmail.com
In your model definition, you can specify choices for each field. http://docs.djangoproject.com/en/dev/topics/db/models/#field-options Create a list of (DB value, display value) tuples containing all the choices, then set the field's "choices" option to that list. Later, when you have your model

converting sql command to django api query

2008-12-25 Thread Alan
Hi List, Merry Xmas! In my mysql db, I have this table (ccpngrid_gridjob), created from a model GridJob: | juser | jname | title | fileName | jdate | jobdir | jstatus | jpid | jiter | round | where my pk is jobdir. I would like to know how to convert, if possible, the sql command below to a dja

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
After looking into that for a while, I can't seem to understand what works and what not... ** From the file README within the project's checkout: The helper provides the following functionality: * The ability to use most manage.py commands * A BaseModel class that appears the same as the sta

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Eric
Here's a project being developed by Google. Guido is even involved: http://code.google.com/p/google-app-engine-django/ On Apr 12, 5:58 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > Great stuff, man! > > I'll try to have an in-depth look this weekend and I'll se if I can help > with anything. >

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
Great stuff, man! I'll try to have an in-depth look this weekend and I'll se if I can help with anything. This seems like a nice solution, until someone pokes up a proper backend (stating that I'm not sure if that's possible, bearing in mind that GAE's datastore is not a RDBM). ~ Chris El vie,

Django API interface adapter for Google App Engine

2008-04-11 Thread Siddhi
Hi, I'm working on an interface adapter for Google App Engine's datastore. I've just started out and have created a project for it here with some basic code - http://code.google.com/p/django-gae-helpers/ The intro page has an explanation of what I'm trying to do - http://code.google.com/p/django

Re: [Q] Django API documents?

2007-12-24 Thread James Bennett
On Dec 24, 2007 11:37 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am relatively new to Django and Python programming. Is there an API > documents in Django similar to JavaDoc? When I do programming in > Java, I can easily look up the JavaDoc to figure out method arguments > etc. I checke

[Q] Django API documents?

2007-12-24 Thread [EMAIL PROTECTED]
Hi, I am relatively new to Django and Python programming. Is there an API documents in Django similar to JavaDoc? When I do programming in Java, I can easily look up the JavaDoc to figure out method arguments etc. I checked the doc folder of the downloaded Django package, but found no such API d

Re: postgresql problem with django api (iregex)

2007-11-20 Thread Malcolm Tredinnick
On Tue, 2007-11-20 at 05:12 -0800, cesco wrote: > Thanks for the reply. > I'm actually trying to match a word boundary with "\\b" before and > after the string, not a backspace. Still one thing is unclear to me: > isn't the django API supposed to be portable acros

Re: postgresql problem with django api (iregex)

2007-11-20 Thread Jeremy Dunck
On Nov 20, 2007 7:12 AM, cesco <[EMAIL PROTECTED]> wrote: ... > isn't the django API supposed to be portable across different database > platforms? Does iregex make an exception because of SQLite lack of reg- > exp support? It tries, but isn't heroic. The options for t

Re: postgresql problem with django api (iregex)

2007-11-20 Thread cesco
Thanks for the reply. I'm actually trying to match a word boundary with "\\b" before and after the string, not a backspace. Still one thing is unclear to me: isn't the django API supposed to be portable across different database platforms? Does iregex make an exception becau

Re: postgresql problem with django api (iregex)

2007-11-19 Thread Malcolm Tredinnick
On Mon, 2007-11-19 at 13:59 -0800, cesco wrote: > Sorry for the imprecise description of the problem. > > After some filtering statements (which I don't show here) I derive a > qs containing about 1000 objects. > With the following statement I try to filter the query further > new_qs = qs.filter

Re: postgresql problem with django api (iregex)

2007-11-19 Thread cesco
Sorry for the imprecise description of the problem. After some filtering statements (which I don't show here) I derive a qs containing about 1000 objects. With the following statement I try to filter the query further new_qs = qs.filter(models.Q(myField__iregex="\\b%s\\b" % myString) and new_qs c

Re: postgresql problem with django api (iregex)

2007-11-18 Thread Malcolm Tredinnick
On Sun, 2007-11-18 at 12:46 -0800, cesco wrote: > Hi, > > I have the following query which works perfectly with sqlite3: > > from django.db import models > qs.filter(models.Q(myField__iregex="\\b%s\\b" % myString) > > In the production server, where I'm running postgresql the exact same > quer

postgresql problem with django api (iregex)

2007-11-18 Thread cesco
Hi, I have the following query which works perfectly with sqlite3: from django.db import models qs.filter(models.Q(myField__iregex="\\b%s\\b" % myString) In the production server, where I'm running postgresql the exact same query is not working. Do you have any idea why this happens? Maybe a bu

Re: Django API doc

2006-03-23 Thread Daniel Poelzleithner
Adrian Holovaty wrote: > Nicely done! I think for the final product we'd want Wilson's loving > design touches. Also, this does a good job of pointing out the areas > in which we need to add docstrings. this will not be fun for wilson ;) the html code really sucks at some parts. i had some more

Re: Django API doc

2006-03-23 Thread Eugene Lazutkin
Adrian Holovaty wrote: > > Nicely done! I think for the final product we'd want Wilson's loving > design touches. Also, this does a good job of pointing out the areas > in which we need to add docstrings. +1 on Wilson --- the man can make everything look better. +1 on adding it to main Django si

Re: Django API doc

2006-03-23 Thread Adrian Holovaty
On 3/22/06, Daniel Poelzleithner <[EMAIL PROTECTED]> wrote: > i created a css to build a django styled API doc with epydoc. > > http://djangoapi.quamquam.org/ Beta Version :) > > I hope we can integrate it as http://api.djangoproject.com someday. Nicely done! I think for the final product we'd wa

Re: Django API doc

2006-03-23 Thread Cheng Zhang
Very useful. Thanks. On Mar 23, 2006, at 4:28 AM, Daniel Poelzleithner wrote: > > Hi, > > i created a css to build a django styled API doc with epydoc. > > http://djangoapi.quamquam.org/ Beta Version :) > > I hope we can integrate it as http://api.djangoproject.com someday. > > kindly regards >

Re: Django API doc

2006-03-23 Thread tonemcd
Daniel, this is terrific work!, I definitely agree with John that you should file this into trac. I can see it saving people a mountain of time! Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Django API doc

2006-03-23 Thread Jeremy Dunck
On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > This is excellent. Concur; neat. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g

Re: Django API doc

2006-03-22 Thread [EMAIL PROTECTED]
This is excellent. You should file a bug in trac to integrate it at http://api.djangoproject.com. I like how you have edited the css to fit in with the djangoproject site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Django API doc

2006-03-22 Thread Daniel Poelzleithner
Hi, i created a css to build a django styled API doc with epydoc. http://djangoapi.quamquam.org/ Beta Version :) I hope we can integrate it as http://api.djangoproject.com someday. kindly regards daniel --~--~-~--~~~---~--~~ You received this message becaus

Re: Raw SQL to Django API Question and a ManyToMany Model Question

2006-02-15 Thread Russell Keith-Magee
On 2/16/06, Brett Hoerner <[EMAIL PROTECTED]> wrote: ---class Tag(meta.Model):  person = meta.ManyToManyField(Person, blank=True, null=True)This is what I meant about the bidirectional query problem - in 0.91/trunk ManyToMany fields can only be traversed in the direction they are defined - in this

Re: Raw SQL to Django API Question and a ManyToMany Model Question

2006-02-15 Thread Brett Hoerner
I've tried: people.get_list(lat__gte=minlat, lon__gte=minlon, lat__lte=maxlat, lon__lte=maxlon, tags__value__exact='django') TypeError: got unexpected keyword argument 'tags__value__exact' And: people.get_list(lat__gte=minlat, lon__gte=minlon, lat__lte=maxlat, lon__lte=maxlon, tag__value__exac

Re: Raw SQL to Django API Question and a ManyToMany Model Question

2006-02-15 Thread Russell Keith-Magee
On 2/16/06, Brett Hoerner <[EMAIL PROTECTED]> wrote: Not sure if anyone will see this now that it's off the front page, butheres what I've gathered so far:Sorry - I meant to answer this one yesterday, but I got distracted. I don't think the Django DB API can handle many2many stuff (at leastright no

Re: Raw SQL to Django API Question and a ManyToMany Model Question

2006-02-15 Thread Brett Hoerner
Not sure if anyone will see this now that it's off the front page, but heres what I've gathered so far: I don't think the Django DB API can handle many2many stuff (at least right now) As for question 2, apparently you _can_ import a model in itself, so problem solved. Thanks to bitprophet on IRC

Raw SQL to Django API Question and a ManyToMany Model Question

2006-02-14 Thread Brett Hoerner
and p.lat <= %s and p.lon <= %s order by p.id""" % (request_tag, minlat, minlon, maxlat, maxlon)) r = c.fetchall() c.close() I'd just like to figure out the Django API equivalent (if there is one) to do something like this. I was thinking, like