ldjango
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: ldjango | ||
| Version: 8.2 | ||
| Version: 8.3 | ||
| Summary: CLI tool for creating Django projects with a predefined structure. | ||
@@ -5,0 +5,0 @@ Author: Liaranda |
+1
-1
@@ -12,3 +12,3 @@ import os | ||
| version = '8.2' | ||
| version = '8.3' | ||
@@ -15,0 +15,0 @@ # Initialize colorama |
+3
-10
@@ -124,3 +124,3 @@ import os | ||
| STATIC_ROOT = BASE_DIR / 'static' | ||
| STATICFILES_DIRS = [BASE_DIR / 'static'] | ||
| STATICFILES_DIRS = [BASE_DIR / 'staticfiles'] | ||
@@ -229,14 +229,7 @@ MEDIA_URL = '/media/' | ||
| # Jalankan makemigrations terlebih dahulu | ||
| subprocess.run(['python', 'manage.py', 'makemigrations'], check=True, capture_output=True, text=True) | ||
| run_command(['python', 'manage.py', 'makemigrations'], pbar) | ||
| pbar.update(1) | ||
| # Kemudian jalankan migrate | ||
| migrate_result = run_command(['python', 'manage.py', 'migrate'], pbar) | ||
| if migrate_result.returncode != 0: | ||
| click.echo(click.style(f"Warning: Migration failed. Error:", fg="yellow")) | ||
| click.echo(click.style(f"STDOUT: {migrate_result.stdout}", fg="yellow")) | ||
| click.echo(click.style(f"STDERR: {migrate_result.stderr}", fg="red")) | ||
| click.echo(click.style("You may need to run migrations manually after fixing any issues.", fg="yellow")) | ||
| else: | ||
| pbar.update(1) | ||
| run_command(['python', 'manage.py', 'migrate'], pbar) | ||
| except subprocess.CalledProcessError as e: | ||
@@ -243,0 +236,0 @@ click.echo(click.style(f"Error during Django commands: {e}", fg="red")) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: ldjango | ||
| Version: 8.2 | ||
| Version: 8.3 | ||
| Summary: CLI tool for creating Django projects with a predefined structure. | ||
@@ -5,0 +5,0 @@ Author: Liaranda |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
65632
-0.77%531
-1.3%