473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how django discovers changed sources

alf
hi,

I started playing with django and accidentally discovered that it
restarts the server once a source file is touched.

does it use some python's feature or just scans for changs on its one?
sources?

any idea?

A.
Jan 17 '08 #1
5 981
That is the behavior of the development server. When you are writing
your application, you don't want to have to manually restart the
server every time you change a file. On apache it obviously doesn't
do that.
Jan 17 '08 #2
alf
Jeff wrote:
That is the behavior of the development server. When you are writing
your application, you don't want to have to manually restart the
server every time you change a file. On apache it obviously doesn't
do that.
thx for clarification, but still I am curious how it is done under the
hood. it really impressed me ...
Jan 17 '08 #3
2008/1/17, alf <as*@me.xs4all.nl>:
Jeff wrote:
That is the behavior of the development server. When you are writing
your application, you don't want to have to manually restart the
server every time you change a file. On apache it obviously doesn't
do that.

thx for clarification, but still I am curious how it is done under the
hood. it really impressed me ...
--
http://mail.python.org/mailman/listinfo/python-list
It checks if modification time on registered files have changed since last check

--
-- Guilherme H. Polo Goncalves
Jan 17 '08 #4
On Jan 17, 2:51 pm, "Guilherme Polo" <ggp...@gmail.comwrote:
2008/1/17, alf <a...@me.xs4all.nl>:Jeff wrote:
That is the behavior of the development server. When you are writing
your application, you don't want to have to manually restart the
server every time you change a file. On apache it obviously doesn't
do that.
thx for clarification, but still I am curious how it is done under the
hood. it really impressed me ...
--
http://mail.python.org/mailman/listinfo/python-list

It checks if modification time on registered files have changed since last check

--
-- Guilherme H. Polo Goncalves
django.utils.autoreload provides the functionality.
Jan 17 '08 #5
alf
Jeff wrote:
On Jan 17, 2:51 pm, "Guilherme Polo" <ggp...@gmail.comwrote:
>2008/1/17, alf <a...@me.xs4all.nl>:Jeff wrote:
>>>That is the behavior of the development server. When you are writing
your application, you don't want to have to manually restart the
server every time you change a file. On apache it obviously doesn't
do that.
thx for clarification, but still I am curious how it is done under the
hood. it really impressed me ...
--
http://mail.python.org/mailman/listinfo/python-list
It checks if modification time on registered files have changed since last check

--
-- Guilherme H. Polo Goncalves

django.utils.autoreload provides the functionality.
thx for the reference,

Andy
Jan 17 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: flamesrock | last post by:
Firstly, this topic is NOT intended for trolling or starting any flame wars. I want to know if anyone has experience with these frameworks, and if so, how do they compare? Which one do you...
13
by: Ilias Lazaridis | last post by:
I have implemented a simple schema evolution support for django, due to a need for a personal project. Additionally, I've provided an Audit: http://case.lazaridis.com/wiki/DjangoAudit As a...
92
by: Ray | last post by:
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our...
2
by: guile | last post by:
hi, i'm running apache 2.2.3 on windows xp and have python 2.5 and mysql 5 installed. i'm having problems installing django. please give me some help. i created a folder "django" in my...
1
by: kernel1983 | last post by:
I look it up in PyPI There are info about Django: Package Score Description Django096 0.96 6 Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic...
4
by: seb.haase | last post by:
Hi! I was surprised when I did a google-groups search for python, ( http://groups.google.com/groups/search?q=python&qt_s=Search+Groups ) it shows these groups: comp.lang.python with about...
2
by: cuongvt | last post by:
Hello I'm new to both Django and Python. I'm mainly developing on PHP. I tend to move to Django. But I want to confirm as below: I heard that Django is mainly used for something like content...
12
by: Dave U. Random | last post by:
http://snipr.com/PracticalDjango
4
by: K | last post by:
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.