Medium size feature for Django Site

Ukończone Opublikowano 4 lat temu Płatność przy odbiorze
Ukończone Płatność przy odbiorze

TLDR;

Create a new model in Django, a page with a form that uses it, repackage an existing function so that the page can use it, and add some code for reading in environment variables.

Full Specs:

I'm trying to build the system to fulfill orders for subscriptions when I get them by giving out authentication keys. I going to generate the keys and store them both in the Django site and with my payment processor. When someone completes an order my payment processer gives them a key and sends them an email. In the email I'm going to direct them to go to a link on my site at /activate/nextcloud where there will be a form for them to enter their key and email. To do this I need you to make the new "Key" Django model, a new Django project called "fulfillment" at /activate url, and the /activate/nextcloud page.

Keys should be a new Django Model that can be modified in the admin area that has the fields:

key - The string value of the key

product - the id of the product

valid - if the key hasn't been used it is valid

email - the associated account email

After a user sucessfully fills out the form valid should be false and the email they provided should be saved with the key.

The page /activate/nextcloud should serve and be the action for the form using the Django form system. It should check if the key exists, is valid, and is for the 'nextcloud' product. If all of these are true it should use the ssh function you made to run a command (you can leave the command as 'ls' or something for now). If they sucessfully activate then return a success message. I'll also give you the theme I'm using for the site which has a HTML form to use.

To run the command over ssh add the environment variables "NEXTCLOUD_SERVER_ADDRESS", "NEXTCLOUD_SERVER_USER", "NEXTCLOUD_SERVER_SSH_KEY". Read and save these three environment variables in [login to view URL], if they are not set print a warning message but don't throw an exception. Then put a ssh function I have in a module that /activate/nextcloud uses. Also can modify the ssh function so that instead of returning the open ssh connection it stores the tuple of (stdin, stdout, ...), then closes the ssh connection, then returns.

Django Python HTML

Numer ID Projektu: #22731611

O projekcie

4 ofert Zdalny projekt Aktywny 4 lat temu

Przyznany użytkownikowi:

aleoreina

Hi. My name is Angel. I am Djang / Python Developer. I need you python app, to start draw or writting your model and after this i'll add Admin panel your model. I understand all about model, now i understand 70% about Więcej

$25 USD w ciągu 7 dni
(6 ocen)
3.4

4 freelancerów złożyło ofertę za $16 w tym projekcie

abhi98041

WEBSITE DEVELOPEMENT Hello, my name is Abhishek.⭐⭐⭐⭐⭐ This project is related to Django and I will discuss more in detail to understand project scope and requirement (like features ,functionality , extra required ser Więcej

$10 USD w ciągu 1 dnia
(240 Oceny)
6.6