feat: print $DJANGO_SETTINGS_MODULE when it's needed

This commit is contained in:
Matej Janezic 2023-06-02 17:07:13 +02:00
parent 63b4b60f9a
commit 251826c048
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ use std::fs::create_dir;
use std::path::{Path, PathBuf};
fn get_django_settings_module() -> Result<String> {
Ok(env::var("DJANGO_SETTINGS_MODULE")?)
let dsm = env::var("DJANGO_SETTINGS_MODULE")?;
println!("USING: {dsm}");
Ok(dsm)
}
pub fn make_command(app: &PathBuf, name: &str) -> Result<()> {