a Python web framework
0
votes
1answer
33 views
How to create different paths for users to take through the pages in my site?
I have a website where users are directed to go through a sequence of pages to perform a sequence of work tasks (transcribe a paragraph, answer a survey, interact with another user, etc). For short, ...
0
votes
1answer
74 views
Handling table name collisions in Django
Django creates a table name by joining the app label with the model name. A project can have many apps. If two have the same label, how can both be used in the same database?
I'm currently using very ...
1
vote
2answers
248 views
Notify players every x seconds in a multiplayer game
I'm working on a realtime multiplayer game using Django and gevent-socketio, I'm facing some issues:
I need to send an update of the game state to connected players every X seconds (~4 seconds), so ...
0
votes
1answer
25 views
One to Many Relationship Django
let say I want my User model to have only one location and my Post model to have many location. How Do I design the model? This is what I have in mind so far. Is this going to work? Do I need to ...
2
votes
1answer
139 views
How to dynamically add new posts once they are created
I am trying to design an application where users can make posts with Django on the backend. Right now I have to refresh the page with JavaScript every 20 or 30 seconds to check for new posts that ...
3
votes
1answer
171 views
Unit testing in Django
I'm really struggling to write effective unit tests for a large Django project. I have reasonably good test coverage, but I've come to realize that the tests I've been writing are definitely ...
8
votes
2answers
10k views
Learning Django by example
When I first started learning Android, I found a fantastic series of YouTube videos by Marakana that stepped through building a Twitter clone. It walked me through all the steps and thus explained to ...
2
votes
1answer
171 views
Python, magic and objects that add attributes to its owner
Let me start with a disclaimer: I'm not the best programmer out there. I do however study I.T. and learnt a bit of Java and C.
I'm getting stuck into Python and Django + Mongoengine, I'm not going to ...
2
votes
3answers
161 views
How to get a Web Application to communicate between users
I am developing a multipalyer web Application for Anti-Chess. It would be hosted on Google App Engine.
I have a few questions:
How do I get two different users who have opened the webapp on their ...
28
votes
7answers
18k views
How do I learn Python from zero to web development? [closed]
I am looking into learning Python for web development.
Assuming I already have some basic web development experience with Java (JSP/Servlets), I'm already familiar with web design (HTML, CSS, JS), ...
2
votes
1answer
185 views
Does it violate the DRY principle to use an MVC server-side framework and a client-side MVC framework
When using a MVC pattern for server side code (in my case django), the model definition is defined once in the model component. When using a client side MVC based library(in my case backbone) the ...
-2
votes
1answer
90 views
Stack for building a searchable image service [closed]
I've been building web services & sites with Django & PostgreSQL using pieces like Redis, Memcached, RabbitMQ, etc. for a few years now.
I'm about to build a new kind of service (for me), ...
2
votes
7answers
371 views
git: having separate folder for development, why?
until now I was using dropbox as my main vcs (it is not, but for a single dev does the job pretty decent).
However I decided to give git a go and see if it fits my needs. Today I was reading this ...
1
vote
1answer
194 views
Python for first programming / web development job [closed]
I've been teaching myself python and django for a couple of years, but I don't seem to find many entry-level python jobs in the UK. If I'm looking to begin a career in programmming / web development, ...
0
votes
1answer
122 views
Restrict access to backend
This might be one of those "not answerable" or "just opinions"-questions but I thought I'd give it a shot.
I'm developing an app with health care information with a friend who's a doctor. The basics ...
3
votes
2answers
396 views
TTS on App Engine
I have written a small front-end to the Festival TTS system using Python/Django. I wish to deploy it on the Google App Engine cloud. A few questions:
My application uses the Festival app ...
3
votes
1answer
368 views
What are your techniques for storing numpy structures in django database fields and how do you serialize them for http?
I want to publish a small web project that is supposed to contain some of my research results to present it to the scientific community. All my analysis I ran so far have been written in python ...
-2
votes
1answer
142 views
Where can I find out about basic python usage, cli, editor and testing? [closed]
I'm coming from Ruby / Ruby on Rails to Python.
Where can I find or find resources about:
The command prompt, what is python's version of 'irb'
info and recommendations on editors, plugins and IDE's
...
1
vote
3answers
631 views
Tips/Process for web-development using Django in a small team [closed]
We're developing a web app uing Django and we're a small team of 3-4 programmers — some doing the UI stuff and some doing the Backend stuff. I'd love some tips and suggestions from the people here. ...
2
votes
2answers
234 views
Which web framework to use under Backbonejs?
For a previous project, I was using Backbonejs alongside Django, but I found out that I didn't use many features from Django. So, I am looking for a lighter framework to use underneath a Backbonejs ...
9
votes
6answers
1k views
Execute code every hour
I need to create a web service that executes every hour. It will be used to review data in a database and add alerts to a table in the same database if certain conditions are met/not met. What we ...
8
votes
3answers
312 views
Should one generally develop a client library for REST services to help prevent API breakages?
We have a project where UI code will be developed by the same team but in a different language (Python/Django) from the services layer (REST/Java). The code for each layer exits in different code ...
5
votes
3answers
388 views
Should we have a database independent SQL like query language in Django?
Note :
I know we have Django ORM already that keeps things database independent and converts to the database specific SQL queries.
Once things starts getting complicated it is preferred to write raw ...
9
votes
4answers
1k views
Should I include HTML markup in my JSON response?
In an e-commerce site, when adding an item to a cart, I'd like to show a popup window with the options you can choose. Imagine you're ordering an iPod Shuffle and now you have to choose the color and ...
1
vote
3answers
1k views
Using Django without a database
Is Django a good solution for creating applications that won't use any database and communicate only through an internal API?
1
vote
2answers
665 views
Is it worth converting a Django project to Rails?
I have a project I shelved a while back- it was essentially a working web app built in django but I stopped working on it to work on something else.
I plan on starting it up again in my spare time, ...
3
votes
2answers
294 views
Django application strategy
I have been working a while on a Django project which has been growing a bit lately. I have been think a bit about what strategy to use to make it easier to handle. One thing I would like to get some ...
0
votes
1answer
110 views
Keeping “historical” migrations in Django-south
After a system has gone through many migrations, and evolved enough for a second version, does it make sense to keep the old migrations around? I mean, old versions will use them to upgrade to the new ...
1
vote
3answers
5k views
How to develop front end (UI) for my Django website
I am learning Django and new to web development. Please excuse me if you find this question too dumb.
So, I am creating a Facebook application using Django which I would like to host in Google App ...
2
votes
1answer
870 views
Moving from PHP to Python - framework considerations
As a long time PHP developer, I am now starting to explore the Python world.
I have narrowed the choice of framework down to Django and Pyramid, probably no big surprise there. I have played a bit ...
3
votes
2answers
377 views
How does key-based caching work?
I recently read an article on the 37Signals blog and I'm left wondering how it is that they get the cache key.
It's all well and good having a cache key that includes the object's timestamp (this ...
0
votes
1answer
210 views
Building a template engine - starting point
We're building a Django-based project with a template/generator component. This component will be separate from the project as such and can be Django/Python, Node, Java or whatever works. The idea is ...
0
votes
1answer
110 views
Parameterized Django models
In principle, a single Django application can be reused in two or more projects, providing functionality relevent to both. That implies that the same database structure (tables and relations) will be ...
6
votes
2answers
2k views
Can I use Visual studio for Python and Django development?
I have been using Visual Studio for quite some time now, in fact from the VS 2005 version. Right now, I am not only comfortable but addict to using it(VS 2010) for all my development needs.
Recently ...
10
votes
4answers
2k views
Are Django forms violating MVC?
I just started working with Django coming from years of Spring MVC and the forms implementation strikes as being slightly crazy. If you're not familiar, Django forms starts with a form model class ...
2
votes
1answer
118 views
How do you map members and their responsibilities to an organization? [closed]
I'm working on a Django project that tracks arts-related activities, and I'm stuck on the human-resources part of things.
(code below) I have a class Ensemble that subclasses Organization. ...
3
votes
2answers
134 views
How would I do a “Server over capacity” message with Django?
This probably isnt' a Django specific question, but I'm wondering how those "Server over capacity" messages are displayed.
Some examples:
Twitter's fail whale
Tumblr's Over capacity slash page
...
4
votes
1answer
414 views
What and how to unit test a django web application?
I am writing unit tests for a web frontend implemented in Django.
I have written unit tests that check that all views return the correct status code (200, 302 etc) so that template errors (which give ...
0
votes
2answers
236 views
Django development best practices
I have spent some time studying Django and I've done some applications. But I really don't know what is the best approach while developing an application, I mean, there are several options: Make all ...
1
vote
1answer
568 views
Starting with Ruby on Rails? I see a lot of criticism everywhere. Is it okay to start with Rails now in 2012? [closed]
I have worked on C before and have never tried my hands on any web application creating framework. After some convincing from one of my friends I thought of giving Rails a go. Before starting to work ...
-1
votes
4answers
2k views
How can I sell my boss on Python+Django instead of PHP+a different framework? [closed]
My boss has tasked me with a re-write of our intranet website. The existing system is very old PHP that doesn't use a framework. My preference is strongly to do the rewrite in Python and Django but my ...
4
votes
3answers
334 views
What is the most productive way to start and manage the development of a large web application?
I've searched high and low for a good answer to this question, and as far as I can gather it's just a combination of standard organization tools (keeping a routine, good folder structure, extensive ...
0
votes
1answer
368 views
Why should I not always pass a Django request context in a view?
According to the relevant Django documentation, a request context offers more than a normal context in that it merges request data into the context.
It is hence necessary for views that perform form ...
4
votes
1answer
983 views
Why does email sent from my site end up in SPAM folders? [closed]
I am developing a course registration website in Django. New users must confirm their email address by clicking on a link emailed to them.
Unfortunately, this message is consistently ending up in ...
4
votes
5answers
700 views
Pros and cons of hiring a programming tutor
I've started to learn programming in Python. It seems like every other code I write, the site breaks, and it'll take me hours to figure out the problem. It's not very encouraging at all.
I've been ...
1
vote
2answers
284 views
Strictly from an employability perspective, what is the best web development framework to learn right now? [closed]
Even though Ruby on Rails seems to be the most popular with the most job openings, is there a compelling employability reason to learn django for example? Maybe because everybody's learning RoR and ...
3
votes
2answers
1k views
How to properly understand django framework? [duplicate]
I have decent knowledge of php, i.e., I can take a framework, read its code and if the docs are adequate, understand what its doing. Main reason for that is that php is actually a very easy language ...
0
votes
3answers
512 views
Translating between Python-Django and Javascript
I have a conceptual question about 'translating' between objects I have stored in Django (in Postgres) that I want to use on the front-end. So I have a user object in Python that holds basic things: ...
2
votes
1answer
296 views
What programming languages and skills are required in addition when building freelance platform with python?
I have a question about compatibility and co-integration of programming languages, databases, frameworks, libraries, different API and more (together referred as “items”). I have added a list of ...
2
votes
3answers
333 views
Django as Python extension?
I come from php community and just started learning Python. I have to create server-side scripts that manipulate databases, files, and send emails.
Some of it I found hard to do in python, comparing ...