|
I've decided to take a look into Django and I had some quick questions. From Java / ASP development, I've gotten spoiled in having really good IDE's. Is there a good ide for Python? By good I mean at least has syntax highlighting, intellisense and debugger integration. Project management would be a bonus but I guess it is not required.
|
# ¿ Apr 9, 2008 01:58 |
|
|
# ¿ Apr 30, 2024 07:36 |
|
I generally develop on Windows these days due to a lot of ASP.NET projects, but I still run Linux so either of those would be fine. So the only options are Vim / Emacs (TextMate is OSX only, yes?). That's disappointing. There aren't any plugins for Eclipse or something of that nature that do intellisense? I've never been that fond of vim / emacs, but I guess I can use them if I really have too. I disagree about the debugger comment, but that's a whole different conversation.
|
# ¿ Apr 9, 2008 02:16 |
|
I have a quick question about master templates and such. I have one master template that works fine, but I was curious how to handle dynamic data in the different blocks. Let's say I have something like this for the master template (lots of the basic code omitted).code:
|
# ¿ Apr 13, 2008 20:13 |
|
Thanks for all the help guys, I will give that a shot.
|
# ¿ Apr 14, 2008 00:56 |
|
Okay, another newbie question . I'm used to be easily able to do multiple operations on one page (from ASP.NET) so I might be off, but here's what I want to do. I would normally do this all one one page (AJAX will come later). 1. Have the user enter a piece of data. 2. Perform a web service request and display options. 3. User selects an option. 4. Store data from the selected option in the DB. I have the web request working, but I don't really seem to be able to get the control flow to work. I have a view named 'add'. Here is the urls.py code:
code:
The problem is that the 'request.POST.__contains__('books_isbn'):' always seems to return true since the error I get is: code:
Also as a side note, what is the standard tab=space settings for python code?
|
# ¿ Apr 15, 2008 03:15 |
|
Is there anyway to have syncdb just drop all the tables and reinsert them? At least for one application? I am porting an existing app and when I mod a table to add fk relationships, etc. it is really annoying to have to delete the tables by hand and then let django re-add them. Perfect would be leaving the django stuff alone (admin, auth, etc) but dropping all tables related to a specific app and re-adding them.
|
# ¿ Apr 23, 2008 00:50 |
|
Sounds great. That should tide me over until the schema gets a little more definite. Got another stupid admin question. I have this in my models.py:code:
code:
|
# ¿ Apr 23, 2008 01:51 |
|
I got a interesting one for you all. We have been tasked with creating a new site that has some interesting properties. I could use some help since I'm still starting with Django. The idea is to create a 'reference' site that implements all the features we need. This part I can do. I create a project with an application called super. This all works fine. Here's the interesting part. I need to create an unlimited number of subsites. The subsites use the same models / db. The subsites will differ mostly in images and css, but sometimes they will need to modify the templates as well. So the idea is that the subsites will use the super site's implementation, templates and views UNLESS the subsite defines it's own, then those should be used. I'd like to do this without copying anything over and over again so if changes need to be made, they only need to be made in one place. My idea was to have the views in the reference site load templates based on a setting. The subsites would override this setting to their individual template dirs, but would check for the existence of a template and if one isn't found, use the reference template. Am I right that I can have the subsites inherit the views from the supersite and then just override any methods that it wants to implement? How would I do this for the site_media stuff? Images / css should be loaded from the subsite specific folders unless they don't exist, then they should load from the supersite...is that possible?
|
# ¿ May 25, 2008 01:37 |
|
Quick question. I was reading up on the Sites framework and I had a quick question. I have a set of sites that I want to run on the same DB and share the same Models, how would I go about setting that up? When I do startproject I get the settings, manage and urls files. Then under that I create an app that has views / models. To share the models, do I create my sites as sub-projects of the project or do I create multiple projects and somehow include the models file? So, this: code:
code:
|
# ¿ Jun 30, 2008 23:17 |
|
Saw this on reddit: http://groups.google.com/group/django-developers/browse_thread/thread/815f76ad7e823cbf?hl=en Benchmark Performance: quote:Summary results: Semi-Real World (Test Suite): quote:I'm seeing about a 40% improvement in Seems like 1.0 is going to be quite a bit faster.
|
# ¿ Aug 7, 2008 19:11 |
|
|
# ¿ Apr 30, 2024 07:36 |
|
Just getting started with a project at work in Django. The app is a pure ReST interface (no web front end). I've noticed there are some plugins for making ReSTful Django interfaces, but the basic Django handlers and stuff seem like they would work fine. For a pure ReST interface app, should I use a library / plugin? Or just use the basic handlers from Django?
|
# ¿ Aug 24, 2011 12:37 |