---
title: "Εγχειρίδιο Django"
version: 6.1
locale: el
source: https://docs.djangoproject.com/el/6.1/
canonical: https://djangodocs.dev/el/6.1/
---
# Εγχειρίδιο Django

**Όλα όσα χρειάζεται να ξέρετε για το Django.**

## Πρώτα βήματα

Είστε καινούργιος στο Django ή στον προγραμματισμό; Αυτό είναι το κατάλληλο μέρος για να αρχίσετε!

- **From scratch:**
  [Overview](/el/6.1/intro/overview/) |
  [Installation](/el/6.1/intro/install/)
- **Tutorial:**
  [Part 1: Requests and responses](/el/6.1/intro/tutorial01/) |
  [Part 2: Models and the admin site](/el/6.1/intro/tutorial02/) |
  [Part 3: Views and templates](/el/6.1/intro/tutorial03/) |
  [Part 4: Forms and generic views](/el/6.1/intro/tutorial04/) |
  [Part 5: Testing](/el/6.1/intro/tutorial05/) |
  [Part 6: Static files](/el/6.1/intro/tutorial06/) |
  [Part 7: Customizing the admin site](/el/6.1/intro/tutorial07/) |
  [Part 8: Adding third-party packages](/el/6.1/intro/tutorial08/)
- **Advanced Tutorials:**
  [How to write reusable apps](/el/6.1/intro/reusable-apps/) |
  [Writing your first contribution to Django](/el/6.1/intro/contributing/)

## Μέρη για βοήθεια

Έχετε κάποιο πρόβλημα; Θα χαρούμε να σας βοηθήσουμε!

- Try the [FAQ](/el/6.1/faq/) – it’s got answers to many common questions.
- Looking for specific information? Try the [Ευρετήριο](/el/6.1/genindex/), [Ευρετήριο μονάδων](/el/6.1/py-modindex/) or
  the [detailed table of contents](/el/6.1/contents/).
- Not found anything? See [Συχνές Ερωτήσεις: Λαμβάνοντας βοήθεια](/el/6.1/faq/help/) for information on getting support
  and asking questions to the community.
- Αναφέρετε τυχόν bugs του Django στον [ticket tracker](https://code.djangoproject.com/).

## Πως είναι δομημένο το documentation

Το Django έχει πολύ documentation. Μια επισκόπηση της οργάνωσης του θα σας βοηθήσει να γνωρίζετε πού να ψάξετε για κάτι συγκεκριμένο:

- [Tutorials](/el/6.1/intro/) take you by the hand through a series of
  steps to create a web application. Start here if you’re new to Django or web
  application development. Also look at the «[Πρώτα βήματα](#index-first-steps)».
- Το άρθρο [χρησιμοποιώντας το Django](/el/6.1/topics/) συζητά επιγραμματικά για βασικά θέματα και έννοιες και παρέχει χρήσιμες πληροφορίες και τεκμηριώσεις.
- Οι [οδηγοί αναφορών](/el/6.1/ref/) περιέχουν τεχνικές αναφορές για τα API και άλλες πτυχές του μηχανισμού του Django. Περιγράφουν πώς λειτουργεί και πώς να το χρησιμοποιήσετε αλλά προϋποθέτει ότι έχετε γνώση βασικών θεμάτων σχετικά με το Django.
- Οι [οδηγοί how-to](/el/6.1/howto/) είναι συνταγές. Σας καθοδηγούν μέσα από βήματα για την επίλυση κοινών προβλημάτων. Είναι πιο προχωρημένα από τα tutorials και προϋποθέτουν ότι έχετε γνώση του τρόπου λειτουργίας του Django.

## Το επίπεδο του μοντέλου (model layer)

Django provides an abstraction layer (the «models») for structuring and
manipulating the data of your web application. Learn more about it below:

- **Models:**
  [Introduction to models](/el/6.1/topics/db/models/) |
  [Field types](/el/6.1/ref/models/fields/) |
  [Indexes](/el/6.1/ref/models/indexes/) |
  [Meta options](/el/6.1/ref/models/options/) |
  [Model class](/el/6.1/ref/models/class/)
- **QuerySets:**
  [Making queries](/el/6.1/topics/db/queries/) |
  [QuerySet method reference](/el/6.1/ref/models/querysets/) |
  [Lookup expressions](/el/6.1/ref/models/lookups/)
- **Model instances:**
  [Instance methods](/el/6.1/ref/models/instances/) |
  [Accessing related objects](/el/6.1/ref/models/relations/)
- **Migrations:**
  [Introduction to Migrations](/el/6.1/topics/migrations/) |
  [Operations reference](/el/6.1/ref/migration-operations/) |
  [SchemaEditor](/el/6.1/ref/schema-editor/) |
  [Writing migrations](/el/6.1/howto/writing-migrations/)
- **Advanced:**
  [Managers](/el/6.1/topics/db/managers/) |
  [Raw SQL](/el/6.1/topics/db/sql/) |
  [Transactions](/el/6.1/topics/db/transactions/) |
  [Aggregation](/el/6.1/topics/db/aggregation/) |
  [Search](/el/6.1/topics/db/search/) |
  [Custom fields](/el/6.1/howto/custom-model-fields/) |
  [Multiple databases](/el/6.1/topics/db/multi-db/) |
  [Custom lookups](/el/6.1/howto/custom-lookups/) |
  [Query Expressions](/el/6.1/ref/models/expressions/) |
  [Conditional Expressions](/el/6.1/ref/models/conditional-expressions/) |
  [Database Functions](/el/6.1/ref/models/database-functions/)
- **Other:**
  [Supported databases](/el/6.1/ref/databases/) |
  [Legacy databases](/el/6.1/howto/legacy-databases/) |
  [Providing initial data](/el/6.1/howto/initial-data/) |
  [Optimize database access](/el/6.1/topics/db/optimization/) |
  [PostgreSQL specific features](/el/6.1/ref/contrib/postgres/)

## Το επίπεδο του view

Το Django έχει την έννοια των «views» για να αναπαραστήσει τη λογική η οποία είναι υπεύθυνη για την επεξεργασία του request του χρήστη και της επιστροφής ενός response. Βρείτε όλα όσα θα θέλατε να μάθετε για τα views παρακάτω:

- **The basics:**
  [URLconfs](/el/6.1/topics/http/urls/) |
  [View functions](/el/6.1/topics/http/views/) |
  [Shortcuts](/el/6.1/topics/http/shortcuts/) |
  [Decorators](/el/6.1/topics/http/decorators/) |
  [Asynchronous Support](/el/6.1/topics/async/)
- **Reference:**
  [Built-in Views](/el/6.1/ref/views/) |
  [Request/response objects](/el/6.1/ref/request-response/) |
  [TemplateResponse objects](/el/6.1/ref/template-response/)
- **File uploads:**
  [Overview](/el/6.1/topics/http/file-uploads/) |
  [File objects](/el/6.1/ref/files/file/) |
  [Storage API](/el/6.1/ref/files/storage/) |
  [Managing files](/el/6.1/topics/files/) |
  [Custom storage](/el/6.1/howto/custom-file-storage/)
- **Class-based views:**
  [Overview](/el/6.1/topics/class-based-views/) |
  [Built-in display views](/el/6.1/topics/class-based-views/generic-display/) |
  [Built-in editing views](/el/6.1/topics/class-based-views/generic-editing/) |
  [Using mixins](/el/6.1/topics/class-based-views/mixins/) |
  [API reference](/el/6.1/ref/class-based-views/) |
  [Flattened index](/el/6.1/ref/class-based-views/flattened-index/)
- **Advanced:**
  [Generating CSV](/el/6.1/howto/outputting-csv/) |
  [Generating PDF](/el/6.1/howto/outputting-pdf/)
- **Middleware:**
  [Overview](/el/6.1/topics/http/middleware/) |
  [Built-in middleware classes](/el/6.1/ref/middleware/)

## Το επίπεδο template

Το επίπεδο template παρέχει ένα φιλικό προς τον designer συντακτικό για να γίνει render η πληροφορία που παρουσιάζεται στον χρήστη. Μάθετε πως αυτό το συντακτικό μπορεί να χρησιμοποιηθεί από τους designers και πως μπορεί να επεκταθεί από τους προγραμματιστές:

- **The basics:**
  [Overview](/el/6.1/topics/templates/)
- **For designers:**
  [Language overview](/el/6.1/ref/templates/language/) |
  [Built-in tags and filters](/el/6.1/ref/templates/builtins/) |
  [Humanization](/el/6.1/ref/contrib/humanize/)
- **For programmers:**
  [Template API](/el/6.1/ref/templates/api/) |
  [Custom tags and filters](/el/6.1/howto/custom-template-tags/) |
  [Custom template backend](/el/6.1/howto/custom-template-backend/)

## Φόρμες

Το Django παρέχει ένα πλούσιο framework για να σας διευκολύνει με την δημιουργία των φορμών και τον χειρισμό των δεδομένων των φορμών (form data).

- **The basics:**
  [Overview](/el/6.1/topics/forms/) |
  [Form API](/el/6.1/ref/forms/api/) |
  [Built-in fields](/el/6.1/ref/forms/fields/) |
  [Built-in widgets](/el/6.1/ref/forms/widgets/)
- **Advanced:**
  [Forms for models](/el/6.1/topics/forms/modelforms/) |
  [Integrating media](/el/6.1/topics/forms/media/) |
  [Formsets](/el/6.1/topics/forms/formsets/) |
  [Customizing validation](/el/6.1/ref/forms/validation/)

## Η διαδικασία της ανάπτυξης (development proccess)

Μάθετε για τα διάφορα components και εργαλεία του Django προκειμένου να σας βοηθήσουν στην ανάπτυξη και στο testing της εφαρμογής σας:

- **Settings:**
  [Overview](/el/6.1/topics/settings/) |
  [Full list of settings](/el/6.1/ref/settings/)
- **Applications:**
  [Overview](/el/6.1/ref/applications/)
- **Exceptions:**
  [Overview](/el/6.1/ref/exceptions/)
- **django-admin and manage.py:**
  [Overview](/el/6.1/ref/django-admin/) |
  [Adding custom commands](/el/6.1/howto/custom-management-commands/)
- **Testing:**
  [Introduction](/el/6.1/topics/testing/) |
  [Writing and running tests](/el/6.1/topics/testing/overview/) |
  [Included testing tools](/el/6.1/topics/testing/tools/) |
  [Advanced topics](/el/6.1/topics/testing/advanced/)
- **Deployment:**
  [Overview](/el/6.1/howto/deployment/) |
  [WSGI servers](/el/6.1/howto/deployment/wsgi/) |
  [ASGI servers](/el/6.1/howto/deployment/asgi/) |
  [Deploying static files](/el/6.1/howto/static-files/deployment/) |
  [Tracking code errors by email](/el/6.1/howto/error-reporting/) |
  [Deployment checklist](/el/6.1/howto/deployment/checklist/)

## Το site διαχείρισης

Βρείτε όλα όσα θα θέλατε να μάθετε σχετικά με το αυτοματοποιημένο διαχειριστικό site του Django, ένα από τα πιο δημοφιλή features του Django:

- [Admin site](/el/6.1/ref/contrib/admin/)
- [Admin actions](/el/6.1/ref/contrib/admin/actions/)
- [Admin documentation generator](/el/6.1/ref/contrib/admin/admindocs/)

## Ασφάλεια

Security is a topic of paramount importance in the development of web
applications and Django provides multiple protection tools and mechanisms:

- [Security overview](/el/6.1/topics/security/)
- [Disclosed security issues in Django](/el/6.1/releases/security/)
- [Clickjacking protection](/el/6.1/ref/clickjacking/)
- [Cross Site Request Forgery protection](/el/6.1/ref/csrf/)
- [Cryptographic signing](/el/6.1/topics/signing/)
- [Security Middleware](/el/6.1/ref/middleware/#security-middleware)
- [Content Security Policy](/el/6.1/ref/csp/)

## Internationalization και localization

Το Django προσφέρει ένα ισχυρό και σταθερό framework όσον αφορά το internationalization και το localization προκειμένου να σας βοηθήσει στην ανάπτυξη εφαρμογών σε πολλές γλώσσες και περιοχές ανά τον κόσμο:

- [Overview](/el/6.1/topics/i18n/) |
  [Internationalization](/el/6.1/topics/i18n/translation/) |
  [Localization](/el/6.1/topics/i18n/translation/#how-to-create-language-files) |
  [Localized web UI formatting and form input](/el/6.1/topics/i18n/formatting/)
- [Ζώνες ώρας (time zones)](/el/6.1/topics/i18n/timezones/)

## Απόδοση και βελτιστοποίηση

Υπάρχουν πολλές τεχνικές και εργαλεία που μπορούν να σας βοηθήσουν στο να κάνετε τον κώδικα σας πιο αποτελεσματικό και γρήγορο, χρησιμοποιώντας λιγότερους πόρους από το σύστημα σας.

- [Performance and optimization overview](/el/6.1/topics/performance/)

## Γεωγραφικό framework

[GeoDjango](/el/6.1/ref/contrib/gis/) intends to be a world-class
geographic web framework. Its goal is to make it as easy as possible to build
GIS web applications and harness the power of spatially enabled data.

## Common web application tools

Django offers multiple tools commonly needed in the development of web
applications:

- **Authentication:**
  [Overview](/el/6.1/topics/auth/) |
  [Using the authentication system](/el/6.1/topics/auth/default/) |
  [Password management](/el/6.1/topics/auth/passwords/) |
  [Customizing authentication](/el/6.1/topics/auth/customizing/) |
  [API Reference](/el/6.1/ref/contrib/auth/)
- [Caching](/el/6.1/topics/cache/)
- [Logging](/el/6.1/topics/logging/)
- [Tasks framework](/el/6.1/topics/tasks/)
- [Sending emails](/el/6.1/topics/email/)
- [Syndication feeds (RSS/Atom)](/el/6.1/ref/contrib/syndication/)
- [Pagination](/el/6.1/topics/pagination/)
- [Messages framework](/el/6.1/ref/contrib/messages/)
- [Serialization](/el/6.1/topics/serialization/)
- [Sessions](/el/6.1/topics/http/sessions/)
- [Sitemaps](/el/6.1/ref/contrib/sitemaps/)
- [Static files management](/el/6.1/ref/contrib/staticfiles/)
- [Data validation](/el/6.1/ref/validators/)

## Άλλες κύριες λειτουργίες

Μάθετε για άλλες κύριες λειτουργίες του Django framework:

- [Conditional content processing](/el/6.1/topics/conditional-view-processing/)
- [Content types and generic relations](/el/6.1/ref/contrib/contenttypes/)
- [Flatpages](/el/6.1/ref/contrib/flatpages/)
- [Redirects](/el/6.1/ref/contrib/redirects/)
- [Signals](/el/6.1/topics/signals/)
- [System check framework](/el/6.1/topics/checks/)
- [The sites framework](/el/6.1/ref/contrib/sites/)
- [Unicode in Django](/el/6.1/ref/unicode/)

## Το ανοιχτού κώδικα project Django

Μάθετε για τη διαδικασία ανάπτυξης του Django project και το πώς μπορείτε να συνεισφέρετε:

- **Community:**
  [Contributing to Django](/el/6.1/internals/contributing/) |
  [The release process](/el/6.1/internals/release-process/) |
  [Team organization](/el/6.1/internals/organization/) |
  [The Django source code repository](/el/6.1/internals/git/) |
  [Security policies](/el/6.1/internals/security/) |
  [Mailing lists and Forum](/el/6.1/internals/mailing-lists/)
- **Design philosophies:**
  [Overview](/el/6.1/misc/design-philosophies/)
- **Documentation:**
  [About this documentation](/el/6.1/internals/contributing/writing-documentation/)
- **Third-party distributions:**
  [Overview](/el/6.1/misc/distributions/)
- **Django over time:**
  [API stability](/el/6.1/misc/api-stability/) |
  [Release notes and upgrading instructions](/el/6.1/releases/) |
  [Deprecation Timeline](/el/6.1/internals/deprecation/)
