marshall62 / msadmin

Admin tools for configuring Mathspring
0 stars 0 forks source link

MSAdmin is the Django/Python Authoring environment for adminstering Mathspring and creating math content for it.

The project is best developed in the Intellij IDEA IDE and upon cloning should be very easy to set up.

Preliminaries:

  1. Clone the repo by doing something like:

    git clone https://github.com/marshall62/msadmin.git

    The msadmin directory it creates will the sources for MS Admin.

  2. install the python libmysql-client

    sudo apt-get install libmysqlclient-dev

  3. (optional) install django

    pip3 install -U Django

  4. In the directory that contains msadmin dir create a virtualenv

    > virtualenv -p python3 dj2mysqlenv
    > source myenv/bin/activate
    (dj2mysqlenv) pip3 install mysqlclient
    (dj2mysqlenv) pip3 install -U Django
    (dj2mysqlenv) deactivate
  5. Intellij:

-Install the Python virtualenv created in step 4.

File | Project Structure | SDKs | +

  1. Note that file msadminsite/settings.py is missing because it contains usernames and passwords that configure the system. Request a copy from me @marshall62.

  2. Run | Edit Configurations. Select Run Django-2 login page. It may pop up a dialog. Make sure it is using the correct python environment (Use the specified python interpreter within your virtualenv) It should then load the browser with the main page of the MSAdmin site.

You may need to do some django db work to create a superuser so that you can login to the MSAdmin tool and administer the database using django.