question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default state file location

See original GitHub issue

By documentation, the default location of the state file is next to the settings.py, which I interpret as the used DJANGO_SETTINGS_MODULE file. Instead it is created in maintenance_mode directory, which may be in /usr/share, /usr/lib/ or other unexpected locations.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ziimacommented, Oct 27, 2017
import os
from django.utils.module_loading import import_module
import_module(os.environ['DJANGO_SETTINGS_MODULE']).__file__
0reactions
fabiocaccamocommented, Mar 19, 2018

Fixed in 0.8.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Terraform State - Best Practices & Examples
State files, by default, are stored in the local directory where Terraform is run. If you are using Terraform to test or for...
Read more >
How to manage Terraform state
A Terraform backend determines how Terraform loads and stores state. The default backend, which you've been using this entire time, is the local...
Read more >
Backend Type: local | Terraform
The path to the tfstate file. This defaults to "terraform. tfstate" relative to the root module by default.
Read more >
States tutorial, part 1 - Basic Usage
States are stored in text files on the master and transferred to the minions on demand via the master's File Server. The collection...
Read more >
What is Terraform State File and How it is Managed?
1.6 Use Terraform Workspaces for Isolating State File ... "name" { type = string default = "Terraform-state" } variable "access_key" { type ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found