# Basic Configuration

Each of our products include a range of configuration options. We encourage you to look at the specific guide for your product in order to understand your particular options, but the below will generally apply to all of our products.

### Basic Environment Variables

In general, the application environment variable files (e.g. dev.env and prod.env) are where you will need to make the majority of your pre-deployment configuration changes. That is, these variables need to be set before you try to build and run your application. And whilst all products have their own specific variables, the below can be used as a initial configuration guide for most:

* [ ] Generate a new Django secret key from: <https://djecrety.ir/>
* [ ] Set DJANGO\_SECRET\_KEY value in dev.env and prod.env to newly obtained secret key
* [ ] Set DJANGO\_ADMIN\_EMAIL to desired email in dev.env and prod.env
* [ ] Set DJANGO\_ALLOWED\_HOSTS to desired host address(es) in prod.env
* [ ] Set DATABASE\_PASSWORD in prod.env

### Post Deployment Configuration

The first and most important variable you should change after you have built and run your application is the admin password. By default we create an admin account for your application as part of the build process, and so you will want to log in and change this password immediately.

You can access Django's admin view by browsing to the /admin/ url. After you have logged into the application using the default password provided within the README.md file. You will find the option to change your admin password in the top right hand corner.

Beyond that, your product will include a series of site configuration settings via the 'Site Configuration' admin view. Here you can set options related to your site name, address, social links, settings for integrations (e.g. Disqus) etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.djangomango.com/get-started-with-your-product/basic-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
