An example app built using the DevCycle Python Server SDK
Python 3.7+ and Django 4.2+
This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.
⇨ Click here to automatically create the feature in your project ⇦
When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.
- Create a
.env
file and setDEVCYCLE_SERVER_SDK_KEY
to your Environment's SDK Key.
You can find this under Settings > Environments on the DevCycle dashboard. Learn more about environments. - Run
python3 -m pip install -r requirements.txt
in the project directory to install dependencies. You may need to runpip
with root permission:sudo pip install -r requirements.txt
- Run
python3 manage.py migrate
to apply migrations
python3 manage.py runserver
The server will start on port 8000. You can access the example app at http://localhost:8000.
For more information about using the DevCycle Python Server SDK, see the documentation