Questions tagged [django]

Django is an open source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Resources

208 questions
65
votes
5 answers

Is backing up a MySQL database in Git a good idea?

I am trying to improve the backup situation for my application. I have a Django application and MySQL database. I read an article suggesting backing up the database in Git. On the one hand I like it, as it will keep a copy of the data and the code…
wobbily_col
  • 1,861
  • 3
  • 16
  • 25
48
votes
6 answers

How do I learn Python from zero to web development?

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), basic programming concepts and that I am completely…
35
votes
3 answers

where exactly should python business logic be placed in django

I have just begun to learn Django/Python/Web Development. This problem has been troubling me for a while now. I am creating an application with multiple templates in Django. I have a views.py which is basically just rendering the responses to the…
adrita
  • 355
  • 1
  • 4
  • 7
33
votes
4 answers

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 Engine. The project would be focusing on reading…
Amie
  • 331
  • 1
  • 3
  • 3
19
votes
5 answers

How difficult is Python and Django to pick up for a Java/.NET web developer?

I just started a new job a couple months ago at a small company where I am currently leading all development efforts present and future. I personally have years of experience in software design and development from mostly Java but also a .NET…
maple_shaft
  • 26,401
  • 11
  • 57
  • 131
18
votes
4 answers

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 that defines your fields. Spring similarly starts…
jiggy
  • 1,590
  • 11
  • 15
14
votes
1 answer

What is the Controller in Django MVC?

Learning Django MVC and the way I thought of it is: Models are the database tables represented in Django as Python classes. Views are the HTML returned from function in views.py. Controllers are the actual functions themselves in views.py invoked…
markmnl
  • 727
  • 1
  • 6
  • 18
14
votes
2 answers

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 input on would be if I should split my…
Mikael
  • 243
  • 2
  • 4
14
votes
1 answer

Is Windows a "second class citizen" in the Django community?

I'm currently doing R&D for a web application which we plan to host ourselves initially and then allow customers to self host. My task has been evaluating web frameworks to see which would give us the biggest productivity initially and ease of…
Daniel Upton
  • 987
  • 8
  • 15
13
votes
4 answers

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 text to engrave. I'd like the window to be…
Mike M. Lin
  • 543
  • 1
  • 4
  • 13
11
votes
1 answer

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 integration/acceptance tests, not unit tests at all, and…
acjay
  • 346
  • 2
  • 12
10
votes
2 answers

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 means that when you update the object the cache will…
Dominic Santos
  • 209
  • 1
  • 3
10
votes
2 answers

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 me the basics, common libraries, best practices,…
Yony
  • 1,647
  • 3
  • 12
  • 14
9
votes
3 answers

Storing editable site content?

We have a Django-based website for which we wanted to make some of the content (text, and business logic such as pricing plans) easily editable in-house, and so we decided to store it outside the codebase. Usually the reason is one of the…
hmp
  • 171
  • 5
9
votes
3 answers

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 repositories and which can follow different release…
BestPractices
  • 309
  • 3
  • 9
1
2 3
13 14