Is it worth refactoring a version 2 of django app to use reusable app
Hi all, My question is very simple , Is it worth refactoring an existing and running app for its version 2 , such that it uses reusable apps. Also is there a nice blog post on the benefits of reusable apps -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
How does the multiple database concept work after django 1.2
Hi all , My app has started breaking after moving to django 1.3 . I don't really understand why? I am working using site framework and given model definition through app_label. The only majot change as I can see is that I use UUID Fields rather than AutoField. Now somehow i see that my app is trying to make a connection to some other db essentially. ConnectionDoesNotExist: The connection myapp doesn't exist myapp here is one of applications in my site famework and the model definations are given as myapp/ __init__.py Circle.py Sqaure.py where Circle and Square are the different models ... Can someone tell me how this came out ... I checked again by moving the back to 1.1 and it works like a charm ... Interesting while I have given defination of one more database in my settings ... I am not actually using it anywhere as yet... Thanks Amit -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Taking a sample mysql dump
Is there a way one could take the dump of just a few sample fields using mysqldump or some other similar tool. ?? Such that you can use it similar to fixture data -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Integrating facebook canvas with django
Hi all , I have to integrate a few django apps with facebook without having to do a major code change on the django apps side. One of the things that I need is to do is to replace django's user backend such that it uses the facebook authentication mechanism .But at same time be able to use other third party django plugins . What would be an effective way to do that such that third party django apps can be integrated without changing any code. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Facebook csrf middleware problem
Hi all , I am writing that shall be a facebook canvas app as well as a standard app at the same time. Now for the time being I am just working with removing csrf from my middleware classes but does anyone know about a project that handles this more effectively such that i can use csrf middleware for my standard app and exempts it when request comes from facebook -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
circular dependency in models.py
I think the solution to this might actually be very simple . I have an app stories that looks something like this at the moment . It is in the same file ideally i would like if both of them were related by foreignkey but that is not possible because they are in same file and there are declaration issues(NameError). class Story(models.Model): """Story model.""" author = models.ForeignKey(User, blank=True, null=True) title = models.TextField(_('title'), ) class Vote(models.Model): """ A vote on an story by a User. """ user = models.ForeignKey(User) story = models.ForeignKey(Story) votes = models.SmallIntegerField(default=0) if i make a foreignkey in story , I have to write a very complicated query to ensure no user can vote twice. In case I keep it in vote its incredibly complicated to write a query to get the score for a story and order stories by vote what should i do . Thanks Amit -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Workflow for a django based facebook canvas app
Well a very common workflow for writing views in django is to do something like this if request.method == 'POST': do some form related stuff else : do some other stuff But for a facebook canvas app all requests are POST , how can I change my workflow such that my app works for both facebook canvas and as a normal app with out any major change to my code. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Delegating a async job from a django view
What is the best solution for delegating a long time taking job from a django view. Basically i wish to query a few web api , analyze and then create a report . The report is not to be created in a sync manner and can be sent at a later time . But it will have a web interface to decide a few factors . I somehow think that twisted can be used for this but I am not sure how one can use twisted with django . Are there any other solutions that i can use for this problem . Thanks Amit -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Handling Efficiency issues
Hi all for some reason i am doing something like this for i in Message.objects.all(): i.read_at = datetime.now() i.save() now the number of Message instances are likely to increase by a lot with time . My question is is it likely that this code piece will become very slow over time. If yes how can handle this more efficiently -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Efficiently querying db
I have a db that looks something like this . { message : xyz parent : 23 id : 25 } or { message : abc parent : None id : 25 } { message : cde parent : 28 id : 32 } { message : lbq parent : 23 id : 35 } I want to make seperate the lists such that messages in same thread( The parent message and its child messages } come together . What is the best way to query the db or a efficient algorithm to do this. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Integrity Error with generic relation using ContentType
On Tue, Jun 14, 2011 at 8:00 PM, christian.posta wrote: > Yes, it is. Any reason why you want the content-types to be part of > your fixtures? Why not let django build that up by itself? > Well essentially it was just a dumpdata from earlier that is being used. But why should I not have it as part of fixtures ? -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Integrity Error with generic relation using ContentType
On Tue, Jun 14, 2011 at 1:41 AM, christian.posta wrote: > Are you using your own fixtures (like initial_data.json)? > Is it possible that in your initial_data.json ( or whatever fixture > you're using) that you're including entries into the content_types [..] Well i do have entries of the kind this : { "pk": 47, "model": "contenttypes.contenttype", "fields": { "model": "user", "name": "user", "app_label": "auth" } }, Are these what you are referring to .. -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Integrity Error with generic relation using ContentType
Hi all , I am trying to introduce some messaging capability in my app. I tried to create a generic relation between some part of my messaging app and a model in one of my previous apps. However when fixtures load I get this error. I am not able to make head and tail of this . What is happening can some explain to me IntegrityError: duplicate key value violates unique constraint "django_content_type_app_label_key" Also what is the possible solution . -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Reasons to use managers
> functionality to your models. (For "row-level" functionality -- i.e., > functions that act on a single instance of a model object -- use Model > methods, not custom Manager methods.) > But what is the benefit of model methods compared to adding an extra field and getting almost the same thing done -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Reasons to use managers
Hi all , I have a situation in which i am contemplating using an extra field although the same thing can be done using a manager(although the function may take some time). In this situation normalization isn't actually a priority. Are there some other reasons to use a manager. Also what would be the difference in terms of efficiency. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Slightly cryptic debug message
Well for example : """ Exception Type: TemplateSyntaxError Exception Value: Caught NameError while rendering: global name 'approved' is not defined """ I don't understand if it is a NameError why should django say TemplateSyntax error when exception value it says it got caught a NameError -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Slightly cryptic debug message
Hi all , I have a question , On the the new versions of django (after 1.2) a lot of syntax errors and other errors come as Templatesyntax errors instead .. . Shouldn't django try to give more compatible debug message. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: South migration for fixtures
And what process should be followed in production and for other collaborators. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
South migration for fixtures
Hi all , I might be wrong with some of the concepts as I am new to south. I am using south to migrate some fixture data for a django app. Also something worth noting is I am bringing south new into the django app it was not part of installed apps till now . So the workflow I have followed till now is run syncdb to install south create a fake initial migration using convert_to_south command create the actual schema migration script for my app using --auto create a data migration script with a forward function for the added field run python manage.py migrate myapp Now obviously I get an error related to fixtures not getting installed . Because I haven't actually changed the data on my fixtures how can I do that(Also when should I do that) . My confusion also is that if I dump data now to create new fixtures I will be creating trouble for my collaborators since when they run syncdb to install south in the end of syncdb when fixtures are installed they will have problems because of the change in fixtures ?? -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: form being deleted from base.html
Hi all sorry it was an issue with my html. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: GET/POST
I think this is csrfmiddleware issue . Just add {% csrf_token %} like this {% csrf_token %} -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
form being deleted from base.html
Hi all , I am not able to understand this but it seems while extending the base template removes form tag. Is this possible in some scenario. This is the only explanation I am able to come up with for the behavior I am seeing in my app. -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
sqlite3 and south data migration
Hi all does sqlite3 not support data migration. I am trying to implement migration on my test fixtures using south however i get this particular error : AttributeError: 'DatabaseFeatures' object has no attribute 'supports_tablespaces' -- A-M-I-T S|S -- 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@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
field specific error message
How do you do field specific messages ... like for a Telephone Number , if all characters are not digit send message (no invalid ) . I have tried raising forms.ValidationError like specified here (http://www.djangosnippets.org/snippets/337/) I have also tried changing forms.Form._errors ... it is this string that seems to be used by forms.Form._html_output to put errors in final html .. but still it does not work for me can some one tell me how to do the above specified thing -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Text Search using Python
Hi , I have a project with a few static html pages , I wish to search these static html using a django search app . Most of the tutorials I saw are focused on searching django models but none I could see concentrates on indexing static html pages . Can some one guide be to a library /tutorial etc for searching and indexing static pages in a project . -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Possibility of recursive rendering
Hi I wish to know if it is possible to use recursive rendering ? . What I mean by that is that their is a template which renders no of comments on a paragraph . SInce their are many paragraphs what i wish to send is a list of render_to_response calls for each paragraph. i.e send response messages from a loop etc ... -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Using django only for request handling work
Hi ,I have a project that is in general written to work with wsgi server except i wish to alter some of the environ variables provided to the app. So I have a function: def __call__(self, environ, start_response): In this I want to change some part of environ So my application looks something like this apache server --->> django to do url handling and changing environ --->> the actual app This is my initial brainstorm . I really don't understand if it is possible to do this . How do I create the same kind of interface like apache or any other server i.e environ and start_response to be sent to the app??? -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Help with apache mod rewrite engine
Hi all , I need some help understanding the mod rewrite module of apache . What I wished to do want that i had a comments folder by the name of /comments/ . Now i run a django project on /sees and i want all the call to /comments/ be redirected to /sees/comments and than be handled by the wsgi file but the rewriting is not happening is it possible to rewrite url and than route it through wsgi script -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
modwsgi on suburl
Hi , can somebody tell me how i should configure mod_wsgi on a suburl I want to set a django project on domain.com/test/ so my urls.py at present looks like : urlpatterns = patterns('', (r'^(.*)', 'sttp.views.serve'),) and the wgi scrip alias is WSGIScriptAlias /test /home/amit/sttp-project/django.wsgi -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how to import a library in only in django project
Hi , I want to use a library in a django project but I don't want to put it in python path. Where am I supposed to put the sys.append so that it will available to the whole django project. -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how to serve multiple files using mod_wsgi
Hi , I have been trying to make a project work with mod_wsgi under apache . The project is not exactly in django . It has a development server of its own for adapting I was using this as a reference .The mod_wsgi manual says that you have to send the response in following manner def application(environ, start_response): status = '200 OK' output = 'Hello World!' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] Now this is fine it you have one file to serve but i need to serve multiple files a sample call on the development server is : localhost - - [19/Nov/2009 16:29:16] "GET /_static/basic.css HTTP/1.1" 200 6385 public/_static/jquery.js localhost - - [19/Nov/2009 16:29:16] "GET /_static/jquery.js HTTP/1.1" 200 55774 public/_static/doctools.js localhost - - [19/Nov/2009 16:29:16] "GET /_static/doctools.js HTTP/1.1" 200 6618 public/_static/jquery.form.js localhost - - [19/Nov/2009 16:29:16] "GET /_static/jquery.form.js HTTP/1.1" 200 23288 public/_static/comments.js localhost - - [19/Nov/2009 16:29:16] "GET /_static/comments.js HTTP/1.1" 200 20337 localhost - - [19/Nov/2009 16:29:16] "HEAD /comments/803b4d0984c5317e5800109ec12bb439 HTTP/1.1" 200 0 localhost - - [19/Nov/2009 16:29:16] "HEAD /fixes/803b4d0984c5317e5800109ec12bb439 HTTP/1.1" 404 0 localhost - - [19/Nov/2009 16:29:16] "GET /comments/803b4d0984c5317e5800109ec12bb439?id=803b4d0984c5317e5800109ec12bb439 HTTP/1.1" 200 464 How do I create a script that can serve all these files ? I am sure django has a way in which it does the same thing what is it. Any reference to code i should look at? -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: first project taking it too production server
Hi , I was able to run it for the time being using mod_proxy but is this is good way . What are the possible problems because of it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: first project taking it too production server
yes I do have ssh access and the server does have python on it. On Tue, Nov 17, 2009 at 7:02 AM, Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 7:41:47 pm Amit Sethi wrote: >> Hi , I just developed my first small app using django , I wish to >> deploy it . I have a apache server with drupal running on it . Can >> anybody guide me about the procedure i should use to deploy the >> project without disturbing the drupal installation in any way... >> > > do you have shell access? is python *really* available (not just the binary, > but all the modules? > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > > -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
first project taking it too production server
Hi , I just developed my first small app using django , I wish to deploy it . I have a apache server with drupal running on it . Can anybody guide me about the procedure i should use to deploy the project without disturbing the drupal installation in any way... -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Following part 2 of the tutorial, I get the following error when trying to view /admin/:
On Fri, Jul 24, 2009 at 6:04 PM, ashish wrote: Well as your error message says , Template does not exist my first guess would be that you did not Activate the admin site .. if that is not so , you should have a look at the section , Customize the look and feel of admin ... it is talking about the basics of Django's templating system . -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Hi people
Take up a small project like the tutorial... On Wed, Jul 22, 2009 at 1:00 PM, Vasil Vangelovski wrote: > > A good place to start is the tutorial: > > http://docs.djangoproject.com/en/dev/intro/tutorial01/ > > If you are new to python you can also check dive into python: > > http://diveintopython.org/ > > On Wed, Jul 22, 2009 at 10:52 AM, sudharsan s wrote: >> >> Hi i am new to django . i have interest towrds programing..so i need >> some help how to start with django i went through the official >> documentation of django and i also installed it.. after that i don >> know how to proceed >> >> > >> > > > > -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: How to get this value
I am not sure what you are trying to do. And the code seems almost unreadable . You could try posting the code to : http://pastebin.com/ Also what might be helpful: What is the problem statement what is this code trying to solve ? What value you want and where ? And what error does django give ... -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Help regarding how to deliver a particular project
I hope i am not breaking any code here and i don't get mails saying its not the place to discuss this . I am trying to create a small xml-rpc like service which uses some other multiple REST/JSON based web services . I am using django because I like simple organized architecture it gives for development. I have collected results in a python dictionary like this . {'SOURCE':Google ,'results':[{result_no:1,url:http://url}]} etc. {'Source':Yahoo,'results':[{result_no:1,url:http://url}]} etc Now i need to collect these result but the problem is that their may be many redundant repeated results . Their may be other stuff that i may need to do on this data. But I don't need to retain the data once it is delivered to the client . Should I save this data using django models for temprory purpose . How can django models help me especially in terms of finding redundant data. How exactly are django models different from databases. Also I may deliver this app using Google app Engine . Now to me It doesn't seem that app engine DataStore API does not seem very different . What are the differences at the application developer's level? Looking forward to the responses -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Searching disparate databases
Hi all , I am trying to develop a web app that searches products on some local stores and give the price.Now I can obviously have a format for stores to feed my database but rather than that .What I want is that the local stores be able to dump their database/feeds on my Server . It would make adding a store a breeze . But the problem is that these databases / feeds might be very different . The datamodels might be very different . So how do I integrate such databases. I just need to extract the product and its price from a store. -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: serving static files
hi thanks , well got the point about url-conf the url pattern you have given does not raise the error but i have still not been able to get my css working my urls.py has an entry (r'^sitemedia/?P.*$', 'django.views.static.serve', {'document_root': '/home/amit/analytics/sitemedia', 'show_indexes': True }) my css file is at path '/home/amit/analytics/sitemedia/default.css' my template has the link to css > > i know this might be very basic but i have just started to try my hand at > this . > -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
serving static files
Hi , i am new to django and i am trying to serve my css file . I followed the instruction to serve static files in development server and made a seperate /media directory I copied my css file into it and changed the url pattern to include: (r'^site_media/default.css$', 'django.views.static.serve', {'document_root': '/home/amit/analytics/media', 'show_indexes': True }), now i get the error serve() takes at least 2 non-keyword arguments (1 given) i am new to web development please help -- A-M-I-T S|S --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---