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.
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.
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 Plus
6 freelance font une offre moyenne de $99 pour ce travail
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 Plus
Hello Dear...! Alert: I will give you 20% discount on my bid rate also give on my All Services. So grabs this special offer is limited. Let’s get to the point. I came to know that your Looking a developer which hav Plus
****** Python Django Expert ******* Hello. I have read your job description carefully. I have full experience in Python and Django with sqlite, mysql. So I can do your projet perfectly. I hope to discuss more via chat Plus
Hi, glad to apply! If you want high skilled django, then I'd be a good match for you. My most recent web project was building the following app using Python | Django and React | Redux. [login to view URL] I have 5 ye Plus
⭐Hello Sir⭐ I have gone through your requirements in detail. I am a web expert having great experience in PYTHON. I can complete your project with full features. Thank you for your cooperation. When you believe me, th Plus