Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new release #443

Merged
merged 2 commits into from Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -23,4 +23,3 @@ local_settings.py
media
.sass-cache
server.log
venv
37 changes: 27 additions & 10 deletions .gitlab-ci.yml
@@ -1,15 +1,32 @@
deploy_live:
stages:
- build
- deploy

buildstage:
stage: build
script:
- df -h
- cd /home/gitlab-runner/bottlecrm/deploy
- git pull https://bottlecrm-runner:unbjh8yr9j9JYFSHGN83dh@gitx.micropyramid.com/bottlecrm/deploy master
- . ../env/bin/activate
- . .env
- cd docker
- ./buildimage.sh bottlecrm-runner unbjh8yr9j9JYFSHGN83dh
only:
- stage
tags:
- bottlecrm

deploystage:
stage: deploy
environment:
name: live
script:
- df -h
- sudo /bin/rm -rf /home/bottlecrm/bottlecrm/; cp -r . /home/bottlecrm/bottlecrm/
- source /home/bottlecrm/env/bin/activate
- pip install -r /home/bottlecrm/bottlecrm/requirements.txt
- python /home/bottlecrm/bottlecrm/manage.py migrate --noinput
- sudo /usr/bin/supervisorctl restart all
- cd /home/gitlab-runner/bottlecrm/deploy
- git pull https://bottlecrm-runner:unbjh8yr9j9JYFSHGN83dh@gitx.micropyramid.com/bottlecrm/deploy master
- . ../env/bin/activate
- . .env
- sudo /usr/bin/bash deploystage.sh
only:
- master
- stage
tags:
- bottlecrm-com
- bottlecrm
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
112 changes: 112 additions & 0 deletions README.md
@@ -0,0 +1,112 @@
Django-CRM
==========

Django CRM is opensource CRM developed on django framework. It has all
the basic features of CRM to start with. We welcome code contributions
and feature requests via github.

<http://django-crm.readthedocs.io> for latest documentation

This project contains the following modules:

> - Contacts
> - Accounts
> - Invoices
> - Cases
> - Leads
> - Opportunity
> - Planner

## Try for free [here](https://bottlecrm.com/)
---

# Installation
We recommend ubuntu 18.04 or ubuntu 20.04. These instructions are verified for ubuntu 20.04.

#### System Requirements
---

```
sudo apt install postgresql xvfb libfontconfig wkhtmltopdf git libpq-dev python3-dev python3-pip gem ruby ruby-dev build-essential libssl-dev libffi-dev python3-venv redis-server redis-tools virtualenv -y

sudo gem install sass

sudo apt-get install postfix

```

#### postfix package installation process
* After running ```sudo apt-get install postfix``` in terminal, select ```Internet``` as a configuration from the pop-up and click ok. Next it will ask to enter the ```System mail name``` which will be the used as a ```From Email Address``` during sending the mail.

#### Install dependencies
---

* Create and activate a virtual environment.

```
virtualenv venv
source venv/bin/activate
```

* Install the project's dependencie

```
pip install -r requirements.txt
```

#### env variables
* Then refer to `env.md` for environment variables and keep those in the `.env` file in the current folder as your project is in.
* Add ```127.0.0.1 test.localhost``` to your hosts file ```/etc/hosts```. Then you can use test as company name to register and login.

#### next steps
```
python manage.py migrate
python manage.py runserver
```
Then open http://localhost:8000 in your borwser and create a new account with test as company name. We mapped `test.localhost` to `127.0.0.1`. So, it should work properly.


### To edit content

```
python manage.py create_blog_user 'username'

```

The above command will add the user as blog admin to edit content at /blog/admin/

### Useful tools and packages
```
pipdeptree # to see pip dependancy tree
black # to format code to meet python coding standards
pip-check -H # to see upgradable packages
```

Community
=========

Get help or stay up to date.

- [Issues](<https://github.com/MicroPyramid/Django-CRM/issues>)
- Follow [@micropyramid](<https://twitter.com/micropyramid>) on Twitter
- Ask questions on [Stack Overflow](<https://stackoverflow.com/questions/tagged/django-crm>)
- Chat with community [Gitter](<https://gitter.im/MicroPyramid/Django-CRM>)
- For customisations, email to <django-crm@micropyramid.com>

Credits
-------

### Contributors

This project exists thanks to all the people who contribute!

![image](https://opencollective.com/django-crm/contributors.svg?width=890&button=false)


Feature requests and bug reports
================================

We welcome your feedback and support, raise github issue if you want to
report a bug or request new feature. we are glad to help.

For commercial support [Contact us](https://micropyramid.com/contact-us/)
134 changes: 0 additions & 134 deletions README.rst

This file was deleted.

12 changes: 0 additions & 12 deletions accounts/api_urls.py

This file was deleted.

12 changes: 12 additions & 0 deletions accounts/urls.py
@@ -0,0 +1,12 @@
from django.urls import path
from accounts import views

app_name = "api_accounts"

urlpatterns = [
path("", views.AccountsListView.as_view()),
path("<int:pk>/", views.AccountDetailView.as_view()),
path("<int:pk>/create_mail", views.AccountCreateMailView.as_view()),
path("comment/<int:pk>/", views.AccountCommentView.as_view()),
path("attachment/<int:pk>/", views.AccountAttachmentView.as_view()),
]
File renamed without changes.
11 changes: 0 additions & 11 deletions cases/api_urls.py

This file was deleted.

11 changes: 11 additions & 0 deletions cases/urls.py
@@ -0,0 +1,11 @@
from django.urls import path
from cases import views

app_name = "api_cases"

urlpatterns = [
path("", views.CaseListView.as_view()),
path("<int:pk>/", views.CaseDetailView.as_view()),
path("comment/<int:pk>/", views.CaseCommentView.as_view()),
path("attachment/<int:pk>/", views.CaseAttachmentView.as_view()),
]
File renamed without changes.
32 changes: 0 additions & 32 deletions common/api_urls.py

This file was deleted.