You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.7 KiB
94 lines
1.7 KiB
### Setup
|
|
|
|
Go to a folder and install a virtualenv:
|
|
|
|
```
|
|
cd path/to/venv/folder && \
|
|
virtualenv . --python python3.5 && \
|
|
source bin/activate && \
|
|
pip install --requirement path/to/requirements.txt
|
|
```
|
|
|
|
```
|
|
python manage.py makemigrations projects specializations users && \
|
|
python manage.py migrate
|
|
```
|
|
|
|
Enable solr-thumbnail:
|
|
|
|
```
|
|
python manage.py makemigrations thumbnail
|
|
python manage.py migrate
|
|
```
|
|
|
|
Run the command at leat once to see specialization ratings:
|
|
|
|
```
|
|
python manage.py recalculation_spec
|
|
```
|
|
|
|
```
|
|
python manage.py runserver
|
|
```
|
|
|
|
```
|
|
python manage.py shell_plus --use-pythonrc
|
|
```
|
|
|
|
----------------------------------------
|
|
|
|
Generate data via:
|
|
|
|
```
|
|
python manage.py generate_* commands
|
|
```
|
|
|
|
Data generation order:
|
|
|
|
1. Superuser
|
|
2. Specializations
|
|
3. Locations
|
|
4. Perm. groups
|
|
5. Build. classif-s
|
|
6. Constr. types
|
|
7. Users
|
|
8. Teams
|
|
9. Realties
|
|
10. Projects
|
|
11. Portfolios
|
|
12. Reviews
|
|
|
|
or here is right commands in one str:
|
|
|
|
```
|
|
python manage.py generate_superuser &&
|
|
python manage.py generate_specializations &&
|
|
python manage.py generate_locations &&
|
|
python manage.py generate_perm_groups &&
|
|
python manage.py generate_build_classifs &&
|
|
python manage.py generate_constr_types &&
|
|
python manage.py generate_users &&
|
|
python manage.py generate_teams &&
|
|
python manage.py generate_realties &&
|
|
python manage.py generate_projects &&
|
|
python manage.py generate_portfolios &&
|
|
python manage.py generate_reviews
|
|
```
|
|
|
|
----------------------------------------
|
|
|
|
# Tooltip examples
|
|
|
|
```
|
|
<div data-tooltip title="{% tooltip pk=123 %}"></div>
|
|
```
|
|
|
|
```
|
|
<div
|
|
data-tooltip
|
|
data-placement="bottom"
|
|
title="{% tooltip name='Безопасная сделка' %}">
|
|
</div>
|
|
```
|
|
|
|
----------------------------------------
|
|
|