Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea done Apr 10, 2019
EMadmin after installuing in scipionbox Apr 11, 2019
utilities change permmit Jul 19, 2017
.gitignore README updated Apr 1, 2019
LICENSE
README.md Update README.md Apr 5, 2019

README.md

EMadmin

EMadmin is a short description. It is built with [Python][0] using the [Django Web Framework][1].

Installation

Quick start

Start virtual enviroment (if developement) or just default python (production)

alias vir_emadmin='source /home/roberto/Scipion/webservices/EMadminVirt/bin/activate'
cd /home/roberto/Scipion/webservices/EMadmin
rm -rf */migrations
rm db.sqlite3 


for APPLICATION in */models.py
   do 
        echo $APPLICATION
        rm -rf $(dirname $APPLICATION)/migrations
   done
   
for APPLICATION in */models.py
   do 
        echo $APPLICATION
        python manage.py makemigrations $(dirname $APPLICATION)
   done

python manage.py makemigrations accounts create_proj create_report create_stat invoice profiles
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

To set up a development environment quickly, first install Python 3. It comes with virtualenv built-in. So create a virtual env by:

1. `$ python -m venv EMadmin`
2. `$ . EMadmin/bin/activate`

NOTE: your virtualenv needs to be python 2

Install all dependencies:

pip install -r requirements.txt

Run migrations:

python manage.py migrate

python manage.py collectstatic

Detailed instructions

start django

python manage,py runserver

connect to server

http://localhost:8000

DROP create_proj_adquisition2 dose_per_frame dose_rate nominal_defocus create_proj_microscope dose_per_fraction invoce_concept

  • unit_proce_university
  • unitprice_empresa invoice_invoice
  • startDate
  • endDate
  • type
  • concept
You can’t perform that action at this time.