Associ'Action opens the doors to a virtual agora, a dynamic marketplace for associations, enabling you to discover, join and benefit from the services offered by a multitude of organizations. Interact, share experiences and actively contribute to the associative life of your community.
Users can search for associations by name or city, and then access their details page to view information and events.
Users can also register on the site so that their information can be recorded and used to search for associations by region or sector.
What's more, registering will give you your own association directory, so you can access events more quickly.
If the user is a member of the association, there are three recognized categories: member, administrator, director; each of these roles has rights over the previous one.
Of course, to upgrade a member to the role of association director, a request must be made to the application administrator by email.
To use this project locally, follow these steps:
Download the project by clicking on the "Code" button at the top right of this page, then select "Download ZIP".
Then unzip the downloaded ZIP file.
Make sure you have Python installed on your machine. You can check your Python version using the following command:
python --versionMake sure you have at least Python 3.8 or later.
Before you begin, create a virtual environment using the following command:
python -m venv venvOn Windows :
venv\Scripts\activateOn macOS and Linux :
source venv/bin/activateInstall the required dependencies using the following command to read the requirements.txt file:
pip install -r requirements.txtTo create a MySQL database for your Django project named "dbassociation", follow these steps:
Install MySQL :
If you haven't already done so, make sure you install MySQL on your system. You can download the appropriate version for your operating system from the official MySQL website (https://dev.mysql.com/downloads/).
Create a Database :
Once MySQL has been installed, you can create a new database using the command line interface.
Open a terminal and connect to MySQL using an account with administrative privileges. You will be prompted to enter the account password.
mysql -u root -pOnce connected, you can create a new database using the following SQL command. Replace "dbassociation" with the name of your desired database.
CREATE DATABASE dbassociation;You can check that the database has been created using the following command:
SHOW DATABASES;Configuring Database Information in Django:
In your Django project, open the settings.py file and locate the DATABASES section. You need to configure the database connection information as follows:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dbassociation',
'USER': 'votre_utilisateur_mysql',
'PASSWORD': 'your_mysql_password',
'HOST': 'localhost', # or the address of your MySQL server
'PORT': '', # Leave empty to use default port (3306)
}
}Be sure to replace 'your_mysql_user' with 'your_mysql_password' with the appropriate login information for your MySQL server.
Make sure you have activated the virtual environment (previous step). Next, run the database migrations using the following commands:
python manage.py makemigrations
python manage.py migrateTo access the Django administration interface, you need to create a superuser using the following command:
python manage.py createsuperuserFollow the instructions to create the superuser, providing an e-mail address, user name, surname, first name and password.
Start the Django development server with the following command:
python manage.py runserverThe server should start up, and you can access the application by opening a web browser and accessing http://localhost:8000/.
I'm a junior Python developer who try to code his life with a better framework than the one he used yesterday.
