FAF represents an English Taught Honor's Program in Computer Science at the Technical University of Moldova. Basically we are a group of enthusiastic and proactive students that try their best.
In order to share things and promote ourselves we decided to lanch our website.
In order to run the project follow the steps:
- Install Python 2.5 or higher (we are using Python 2.7)
- Install PIL- Python Imaging Library
- Download and set up Django 1.4.1
- Install django-TinyMCE
- Instal MySQL
- Install MySQL-python
- Run the following
mysql -u root -p
mysql> CREATE DATABASE fafdb;
mysql> GRANT ALL ON fafdb.* TO 'root'@'localhost' IDENTIFIED BY 'dev';
mysql> quit
mysql -u root -pdev fafdb<fafdb_dump.sql
- Install GIT, for windows there is GITHUB for Windows
- Use GIT to clone fafsite project to your local directory
- Copy the contents from
fafsite/staging_settings.py
to a new locally created filefafsite/settings.py
- cd to the project path and run the following
<python manage.py syncdb>
- Run the project from the console within the project directory
<python manage.py runserver>
- Now you can acces the server on the localhost
- To access django admin console: access
http://localhost:8000/admin
. User:dev, Password:dev
- Python is installed by default on Ubuntu (so nothing to do here)
- Install pip (
sudo apt-get install python-pip
) - Install PIL (
sudo pip install PIL
) - Install Django (
sudo pip install Django
) - Install tiny mce (
sudo pip install django-tinymce
) - Install MySQL (
sudo apt-get install mysql-server
) - Install Python MySQL module (
sudo pip install MySQL-python
, probably will need to install python-dev package) - Open the terminal and run the following
mysql -u root -p
mysql> CREATE DATABASE fafdb;
mysql> GRANT ALL ON fafdb.* TO 'root'@'localhost' IDENTIFIED BY 'dev';
mysql> quit
- Install git (
sudo apt-get git-core
) - Copy project to your local directory (
git clone https://github.com/ana-balica/fafsite.git
) - Copy the contents from
fafsite/staging_settings.py
to a new locally created filefafsite/settings.py
- cd in fafsite directory (
cd fafsite/
) - Run server (
python manage.py syncdb
) - Run server (
python manage.py runserver
)