Giter Site home page Giter Site logo

django / djangoproject.com Goto Github PK

View Code? Open in Web Editor NEW
1.8K 1.8K 925.0 18.47 MB

Source code to djangoproject.com

Home Page: https://www.djangoproject.com/

License: BSD 3-Clause "New" or "Revised" License

Python 24.56% CSS 0.23% JavaScript 28.15% Makefile 0.06% HTML 8.71% CoffeeScript 0.83% Ruby 0.68% Smalltalk 0.01% PostScript 32.22% C# 0.05% Shell 0.05% Dockerfile 0.04% SCSS 4.41% Procfile 0.01%

djangoproject.com's Introduction

Django

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:

To contribute to Django:

To run Django's test suite:

Supporting the Development of Django

Django's development depends on your contributions.

If you depend on Django, remember to support the Django Software Foundation: https://www.djangoproject.com/fundraising/

djangoproject.com's People

Contributors

aaugustin avatar alex avatar andrevvm avatar apollo13 avatar asendecka avatar bmispelon avatar carltongibson avatar cgl avatar claudep avatar coderanger avatar curiouslearner avatar dependabot[bot] avatar felixxm avatar frankwiles avatar jacobian avatar jezdez avatar jphalip avatar justinabrahms avatar markush avatar mxsasha avatar nessita avatar oinopion avatar olasitarska avatar pauloxnet avatar pre-commit-ci[bot] avatar relekang avatar sabderemane avatar timgraham avatar tobiasmcnulty avatar treyhunner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

djangoproject.com's Issues

Styling for flatpages templates

  • flatfiles/default.html
  • flatfiles/overview.html
  • flatpages/code.html
  • flatpages/community.html
  • flatpages/default.html
  • flatpages/foundation.html
  • flatpages/snakeandrubies.html

Sample login template doesn't work as it is

This should be a quick fix and if no one does it before I can I will put in a pull request but at this link: https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login where it shows the example login template there is a tiny error.

Here is what is presently there:

{% extends "base.html" %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}

The line that is breaks at is <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> and it is because there shouldn't be any single quotes around django.contrib.auth.views.login.

Here is the correct version:

{% extends "base.html" %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}

Style Code of Conduct templates

  • conduct/base.html
  • conduct/changes.html
  • conduct/enforcement.html
  • conduct/faq.html
  • conduct/index.html
  • conduct/reporting.html

Homepage

Most of the work is done here.

Missing things:

  • copy for mailing lists
  • when we hide case studies, sidebar is now longer than content and it breaks the design.

@andrevvm, any suggestions on the second point?

Add some content to Trac's left sidebar

With Trac's new design we now have a nice sidebar.

The problem is, it currently only contains a search bar and it looks a bit empty.

We could add some links to useful pages like the dashboard, the contributing guide, ...

Move docs to new design

  • docs/doc.html
  • docs/genindex.html
  • docs/index.html
  • docs/py-modindex.html
  • docs/search.html
  • docs/search_form.html
  • version switcher (blocked by #116)
  • version chooser in search (blocked by #116)
  • horizontal navigation (next page, previous page) (blocked by #116)

Tabs in templates

Could we use spaces (as the current version of the site does) instead?

Styling for aggregator templates

  • aggregator/delete-confirm.html
  • aggregator/denied.html
  • aggregator/edit-feed.html
  • aggregator/feeditem_list.html
  • aggregator/index.html
  • aggregator/my-feeds.html

Pagination on the blog

Currently all the posts are visible on one list. This is not very user-friendly.. In the future we should add pagination there.

Revisit webfont strategy

The general gist is that we need to figure out how to host the webfonts we bought from the type foundry.

Missing blog post appears at the top of community feed

For a few weeks the "Goodbye iOS, hello Android" post is staying at the top of the community feed. I wondered about no one posting for such a long time when I realized that this is this post just constantly changes its date to keep on the top.

Probable this have something in common with the fact that the post page returns 404.

Immediate change for sites listed on the home page

Can we change the "Sites that use Django" from dead sites like tabblo and the various newspaper sites with things like:

  • pinterest
  • instagram
  • disqus
  • mozilla
  • anything else that impresses decision makers?

Categories / tags on blog

New design has tags/categories in blog. I've commented them so far. Do we want to implement them in the future?

Move badges to STATIC_DIR

Images for badges and logos are kept in MEDIA_DIR. I think we should move them into STATIC_DIR and check them into source code.

Test

This is a test.

Color of links in footer

Links in copyright section in the footer are green on light green and thus are unreadable. I've checked this on my phone, so this might be mobile theme problem.
Here's
image
screenshot

Setup a second Heroku app for docs

We need a second Heroku app for docs.djangoproject.com -- inside djangoproject.com repo we actually have two django apps, two wsgi files, two settings, etc. It may be tricky to set it up properly on Heroku with one Heroku app, but should be easy with two Heroku apps :)

Move blog section to new design

  • blog/entry_archive.html
  • blog/entry_archive_day.html
  • blog/entry_archive_month.html
  • blog/entry_archive_year.html
  • blog/entry_detail.html
  • blog/entry_snippet.html
  • blog/month_links_snippet.html

Procedure in README.txt for setting up djangoproject locally doesn't work

The current procedures described in README.txt for setting up the djangoproject locally don't work. This appears to be because they assume that you already have a trac database setup properly with the correct schema. When the ./manage.py migrate step is executed, it fails due to missing relations from the trac model. In particular, the migration fails with the following error:

Running migrations for trac:

  • Migrating forwards to 0001_initial.

    trac:0001_initial
    ERROR: relation "attachment" does not exist
    STATEMENT: CREATE VIEW "attachment_django_view" AS
    SELECT "type" || '.' || "id" || '.' || "filename" AS "django_id", *
    FROM attachment;

Perhaps you could provide a truncated database dump from the live trac instance so that this can be used to create a dummy trac database.

Styling for registration templates

  • registration/activate.html
  • registration/activation_complete.html
  • registration/base.html
  • registration/logged_out.html
  • registration/login.html
  • registration/password_reset_email.html
  • registration/registration_form.html
  • registration/registration_complete.html
  • accounts/edit_profile.html
  • accounts/user_profile.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.