A simple Django app to handle user tickets.
Project description
# Installation
Install the pip package:
```bash
pip install django-simplefeedback
```
Install `django-rest-framework` if not already installed
add `simple-feedback` and `rest_framework` to INSTALLED_APPS
include 'simple-feedback.urls' into urlpatterns
```python
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r"^api/", include("simple-feedback.urls")),
]
```
Migrate the db to crate simple-feedback models
```bash
python manage.py migrate
```
# Develop
Clone the repo
```bash
git clone git@github.com:pulilab/django-simple-feedback.git
```
## Test app
Test standalone app:
$ export DATABASE_URL='your_db' # you can skip this, defaults to 'localhost' (use postgres.app for simplicity)
$ pip install -r requirements.txt
$ python runtests.py
## Run the app in develop mode
Create a new django project and install the package in develop mode
```bash
django-admin startproject simple_feedback_demo
cd simple_feedback_demo
pip install -e ~LOCAL_PATH_TO_DJANGO_SIMPLEFEEDBACK
```
Add `simple-feedback` and `rest_framework` to `INSTALLED_APPS` in `settings.py`
```python
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'simple-feedback'
]
```
Configure demo app urls
```python
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r"^api/", include("simple-feedback.urls")),
]
```
> SqlLite is not supported
Change the db config to use postgres in `settings.py`:
```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': os.environ.get("DATABASE_URL", 'localhost'),
'PORT': 5432,
}
}
```
Migrate db, create super user and run your demo app:
```bash
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```
open the browser at `http://localhost:8000/admin`
Install the pip package:
```bash
pip install django-simplefeedback
```
Install `django-rest-framework` if not already installed
add `simple-feedback` and `rest_framework` to INSTALLED_APPS
include 'simple-feedback.urls' into urlpatterns
```python
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r"^api/", include("simple-feedback.urls")),
]
```
Migrate the db to crate simple-feedback models
```bash
python manage.py migrate
```
# Develop
Clone the repo
```bash
git clone git@github.com:pulilab/django-simple-feedback.git
```
## Test app
Test standalone app:
$ export DATABASE_URL='your_db' # you can skip this, defaults to 'localhost' (use postgres.app for simplicity)
$ pip install -r requirements.txt
$ python runtests.py
## Run the app in develop mode
Create a new django project and install the package in develop mode
```bash
django-admin startproject simple_feedback_demo
cd simple_feedback_demo
pip install -e ~LOCAL_PATH_TO_DJANGO_SIMPLEFEEDBACK
```
Add `simple-feedback` and `rest_framework` to `INSTALLED_APPS` in `settings.py`
```python
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'simple-feedback'
]
```
Configure demo app urls
```python
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r"^api/", include("simple-feedback.urls")),
]
```
> SqlLite is not supported
Change the db config to use postgres in `settings.py`:
```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': os.environ.get("DATABASE_URL", 'localhost'),
'PORT': 5432,
}
}
```
Migrate db, create super user and run your demo app:
```bash
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```
open the browser at `http://localhost:8000/admin`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-simplefeedback-0.8.tar.gz
.
File metadata
- Download URL: django-simplefeedback-0.8.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fd7754f68ab70c0d70d42c5a9a1aa85c66ae203a19d2a420b2a26ce24f0edf |
|
MD5 | d0e987546ff2bf369339fa430ba60d1c |
|
BLAKE2b-256 | d0ebf2b523e4c316ae6dd3b5c968fe91b14c2460e27f8af2c5d31fb06f61ab83 |