Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astrosat/django-astrosat-core
Common backend library for Astrosat projects' core functionality
https://github.com/astrosat/django-astrosat-core
Last synced: about 2 months ago
JSON representation
Common backend library for Astrosat projects' core functionality
- Host: GitHub
- URL: https://github.com/astrosat/django-astrosat-core
- Owner: astrosat
- License: gpl-3.0
- Created: 2019-08-15T08:00:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T18:58:45.000Z (almost 2 years ago)
- Last Synced: 2023-08-12T16:21:05.193Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 1.97 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-astrosat-core
## quick start
1. in the project you want to use it type:
`pipenv install -e git+https://github.com/astrosat/django-astrosat-core.git@master#egg=django-astrosat`2. add "astrosat" to your INSTALLED_APPS settings like this:
```
INSTALLED_APPS = [
...
'astrosat',
...
]
```
2. include the astrosat URLconf in your project "urls.py" like this:
```
path("", include("astrosat.urls")
```3. run `python manage.py migrate` to create the astrosat models.
4. profit!
## developing
django-astrosat-core comes w/ an example project to help w/ developing/testing
1. `git clone https://github.com/astrosat/django-astrosat-core.git`
2. `cd django-astrosat-core/example`
3. activate virtual environments as desired
4. `pipenv install`
5. `python manage.py makemigrations && python manage.py migrate` as needed
6. `python manage.py collectstatic --noinput` as needed
7. `python manage.py runserver` goto "http://localhost:8000" and enjoynote that "django-astrosat-core/examples/Pipfile" was created using `pipenv install -e ..`; this uses a pointer to "django-astrosat-core/setup.py" in the virtual environment and creates a entry like [packages.ed0a5ba]; if the distribution changes just run `pipenv update ed0a5ba`, otherwise code changes should just be picked up b/c of the `-e` flag.
Note note that when things go wrong, I tend to get this error: "LookupError: No installed app with label 'admin'."