0
0
mirror of https://github.com/django/django.git synced 2024-12-01 07:31:48 +01:00
The Web framework for perfectionists with deadlines. https://www.djangoproject.com/
Go to file
Loic Bistuer eb82fb0a9d Refactored color_style() and no_style() to improve testability. Refs #23663.
This includes the following improvements:

- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
  from a config string. Before the only way to get a style object was
  through the environ and it also required that the terminal supported
  colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
  other Style objects. Previously it allowed anything to pass through
  with __getattr__.
2014-10-22 11:27:00 +07:00
.tx Added Chinese language aliases in tx client config 2014-08-20 10:22:21 +02:00
django Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
docs Removed unused import from the JSON serialization example. 2014-10-21 23:49:40 -04:00
extras Removed extras/csrf_migration_helper.py 2014-06-09 11:53:09 -04:00
scripts Converted Django scripts to argparse 2014-06-09 10:13:37 +02:00
tests Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
.gitattributes
.gitignore
.hgignore
AUTHORS Added Bashar Al-Abdulhadi to AUTHORS 2014-10-15 22:20:08 +03:00
CONTRIBUTING.rst
INSTALL
LICENSE
MANIFEST.in Fixed #23072 -- Added missing formtools test templates in tarball 2014-07-22 10:45:50 +02:00
README.rst
setup.cfg Fixed some flake8 errors. 2014-09-19 12:31:15 -04:00
setup.py

Django is a high-level Python Web framework that encourages rapid development
and clean, pragmatic design. Thanks for checking it out.

All documentation is in the "docs" directory and online at
https://docs.djangoproject.com/en/stable/. If you're just getting started,
here's how we recommend you read the docs:

* First, read docs/intro/install.txt for instructions on installing Django.

* Next, work through the tutorials in order (docs/intro/tutorial01.txt,
  docs/intro/tutorial02.txt, etc.).

* If you want to set up an actual deployment server, read
  docs/howto/deployment/index.txt for instructions.

* You'll probably want to read through the topical guides (in docs/topics)
  next; from there you can jump to the HOWTOs (in docs/howto) for specific
  problems, and check out the reference (docs/ref) for gory details.

* See docs/README for instructions on building an HTML version of the docs.

Docs are updated rigorously. If you find any problems in the docs, or think
they should be clarified in any way, please take 30 seconds to fill out a
ticket here: https://code.djangoproject.com/newticket

To get more help:

* Join the #django channel on irc.freenode.net. Lots of helpful people hang out
  there. Read the archives at http://django-irc-logs.com/.

* Join the django-users mailing list, or read the archives, at
  https://groups.google.com/group/django-users.

To contribute to Django:

* Check out https://www.djangoproject.com/community/ for information about
  getting involved.

To run Django's test suite:

* Follow the instructions in the "Unit tests" section of
  docs/internals/contributing/writing-code/unit-tests.txt, published online at
  https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-unit-tests