Visualize Django URL routing inside the Django Admin, including patterns, views, namespaces, etc
Project description
Dj Urls Panel
Visualize Django URL routing inside the Django Admin, including patterns, views, namespaces, etc
Docs
https://yassi.github.io/dj-urls-panel/
Features
- TBD: Add your main features here
Project Structure
dj-urls-panel/
├── dj_urls_panel/ # Main package
│ ├── templates/ # Django templates
│ ├── views.py # Django views
│ └── urls.py # URL patterns
├── example_project/ # Example Django project
├── tests/ # Test suite
├── images/ # Screenshots for README
└── requirements.txt # Development dependencies
Requirements
- Python 3.9+
- Django 4.2+
Screenshots
Django Admin Integration
Seamlessly integrated into your Django admin interface. A new section for dj-urls-panel will appear in the same places where your models appear.
NOTE: This application does not actually introduce any model or migrations.
Installation
1. Install the Package
pip install dj-urls-panel
2. Add to Django Settings
Add dj_urls_panel to your INSTALLED_APPS:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'dj_urls_panel', # Add this line
# ... your other apps
]
3. Configure Settings (Optional)
Add any custom configuration to your Django settings if needed:
# Optional: Add custom settings for dj_urls_panel
DJ_URLS_PANEL_SETTINGS = {
# Add your configuration here
}
4. Include URLs
Add the Panel URLs to your main urls.py:
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/dj-urls-panel/', include('dj_urls_panel.urls')), # Add this line
path('admin/', admin.site.urls),
]
5. Run Migrations and Create Superuser
python manage.py migrate
python manage.py createsuperuser # If you don't have an admin user
6. Access the Panel
-
Start your Django development server:
python manage.py runserver
-
Navigate to the Django admin at
http://127.0.0.1:8000/admin/ -
Look for the "DJ URLS PANEL" section in the admin interface
License
This project is licensed under the MIT License. See the LICENSE file for details.
Development Setup
If you want to contribute to this project or set it up for local development:
Prerequisites
- Python 3.9 or higher
- Redis server running locally
- Git
- Autoconf
- Docker
It is reccommended that you use docker since it will automate much of dev env setup
1. Clone the Repository
git clone https://github.com/yassi/dj-urls-panel.git
cd dj-urls-panel
2a. Set up dev environment using virtualenv
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e . # install dj-urls-panel package locally
pip intall -r requirements.txt # install all dev requirements
# Alternatively
make install # this will also do the above in one single command
2b. Set up dev environment using docker
make docker_up # bring up all services (redis, memached) and dev environment container
make docker_shell # open up a shell in the docker conatiner
3. Set Up Example Project
The repository includes an example Django project for development and testing
cd example_project
python manage.py migrate
python manage.py createsuperuser
4. Populate Test Data (Optional)
Add any custom management commands for populating test data if needed.
6. Run the Development Server
python manage.py runserver
Visit http://127.0.0.1:8000/admin/ to access the Django admin with Dj Urls Panel.
7. Running Tests
The project includes a comprehensive test suite. You can run them by using make or by invoking pytest directly:
# build and install all dev dependencies and run all tests inside of docker container
make test_docker
# Test without the docker on your host machine.
# note that testing always requires a redis and memcached service to be up.
# these are mostly easily brought up using docker
make test_local
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dj_urls_panel-0.1.1.tar.gz.
File metadata
- Download URL: dj_urls_panel-0.1.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320a00134851e957951eb035c8f840ac8b22011c24b85c6e27ee2ce2f9b5785e
|
|
| MD5 |
64db4fec6ec562eeea537f14ce7c92c3
|
|
| BLAKE2b-256 |
17dffd04052a850eedd5b72a3796b0b2abf0c3e88cc8e6ac611313cc3ceb85d9
|
Provenance
The following attestation bundles were made for dj_urls_panel-0.1.1.tar.gz:
Publisher:
python-publish.yml on yassi/dj-urls-panel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_urls_panel-0.1.1.tar.gz -
Subject digest:
320a00134851e957951eb035c8f840ac8b22011c24b85c6e27ee2ce2f9b5785e - Sigstore transparency entry: 908830508
- Sigstore integration time:
-
Permalink:
yassi/dj-urls-panel@7124a0878e4fa3a98f84a7bd04b804969f307106 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/yassi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7124a0878e4fa3a98f84a7bd04b804969f307106 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dj_urls_panel-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dj_urls_panel-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1478ff2c13ee258f631b9502dac399dab56134d3bfc0cf8975e3d43f4780f18
|
|
| MD5 |
808b8dbedf19af974724286088784e7e
|
|
| BLAKE2b-256 |
dcca7b672ea42e2213a546abb3db52ca0c9fdc74b0b5f295ab74fada0b21f719
|
Provenance
The following attestation bundles were made for dj_urls_panel-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on yassi/dj-urls-panel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_urls_panel-0.1.1-py3-none-any.whl -
Subject digest:
b1478ff2c13ee258f631b9502dac399dab56134d3bfc0cf8975e3d43f4780f18 - Sigstore transparency entry: 908830519
- Sigstore integration time:
-
Permalink:
yassi/dj-urls-panel@7124a0878e4fa3a98f84a7bd04b804969f307106 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/yassi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7124a0878e4fa3a98f84a7bd04b804969f307106 -
Trigger Event:
release
-
Statement type: