how to run external django project different computer? [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I developed a project on django, after that uploaded it on Github. I want to see this project any other computer, on django's development server but, when I downloaded the project and tried to run by python manage.py runserver command, localhost:8000 works but, I have TemplateDoesNotExist at/ errors. How can I fix this?

Make sure that you have all files and directory that have before in initial project root directory.
also check .gitignore file in the repository

Related

Django on Heroku: relation "app_label" does not exist [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm trying to deploy my Django app on Heroku. The build is successful, but the deployment fails with django.db.utils.ProgrammingError: relation "app_label" does not exist.
I'm deploying directly from GitHub; the repo is public.
I already looked for advice online and added try-except around the urlpatterns as suggested here, but it didn't help.
I also have all the migrations committed.
Now I'm not sure what might have caused the problem or how to fix it.
I have successfully deployed another Django and proceeded the same way now, which is why I'm surprised it doesn't work.
I'm trying to connect to the same PostgreSQL DB on Heroku that I use for the other Django app. Is that a problem? Do I need to reconfigure something here? Or do I ever need to run python manage.py migrate manually on Heroku? I think this should be taken care of by my Procfile.
Any ideas or tips?
I'm using Python 3.8 and Django 3.1.
The problem was really with trying to connect to the same PostgreSQL DB that I used for another Django App. I thought there would be just multiple tables in the same DB, but it doesn't work.
I created a new DB and configured the database URL accordingly and it worked.

How to run a .py file from iOS using Swift [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have a Python project for web automatization using Selenium. As I do not always have access to my computer, I would like to be able to run it from my iPhone. Is it possible to run a .py file from a Swift app on iOS? I would appreciate code samples since I am a beginner but simply pointing me in the right direction would be a great help.
Thanks.
1) You need some backend application running on your PC;
2) backend application must have some Web API for managing Selenium application;
3) From iOS app you send http-request to API using Alamofire or any other solution.

Django with application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
This is a beginner question. I post this here because I'm so lost that I realized I even don't know what to look for.
I'm a C++ developper and have a developed C++ app. On the other hand, I recently dug into web development and created a website using the Django framework, which I host on Heroku.
The flow of the website: a user enters input on the website, input files are uploaded to AWS S3 (I managed to get that working).
The part I'm lost: with the user input, I'd like to run the C++ app which I host on a Linux server (Codenvy). But I have no idea how to launch that application from the Django site which is served by Heroku. At least giving some keywords to enhance my web searches?
It sounds like what you need is to run a script on another server using python?
I'd suggest taking a look at Paramiko:
https://github.com/paramiko/paramiko/
It is a package to allow you to ssh into another machine and execute commands.

Deploy Flask app on pythonanywhere.com [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have working simple blog. Code here - https://github.com/4doge/askMe
I already have account on pythonanywhere and Flask app. What i need now?
Specifically, what steps should I follow to get the code off github, onto pythonanywhere, and then make the blog site live on the Internet using pythonanywhere's service?
I think these would be the next steps to deploy the app:
open a console: go to pythonanywhere.com, click on Consoles and then on Bash
clone your app
git clone git#github.com:4doge/askMe.git
You go to pythonanywhere.com and click on Web
click on add a new web app. (delete the old one if you have a free plan and do not need the old one)
click through and in the last dialog step you can choose the path to your run.py
Now the app should be running. You can restart it and browse it.

distribute deploy python web application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm in the early phases of designing and implementing a python web project that i want to be able to easily distribute.
Coming from a primary PHP and Perl world i know how i would do the project in those lanuages but I am trying to find the best method for python.
Not sure if it matters, but I'm thinking of using django as the web framework, but still exploring other frameworks.
What i'm looking for is best practices to be able to bundle my application and have users just install it using pip.
Would i be able to package the wen application like that even if it using django or is that not the way its normally done? Would they instead just download the code and set it up like it was any other tar ball of code?
I tried searching around for this but i find mostly information on people deploying there own projects.
Thanks
Dan
The answer depends of the size of your project.
If it's a plugin that could be integrated to any web site, so probally just an app in the project, it's quite easy check the page of the django's doc
If it's a full websitethen it's a little bit more complicated, since a django project depends on multiple settings that could differ from one system to an other I usually see the project being installed from a tar ball.
I've seen packages like django-admintools bundle multiple apps in one package, but the user still need to create a basic django project.
From what I know a full project cannot be install only by PIP.. the user always need to setup settings and the webserver (apache or nginx).
I hope this helped you.

Categories

Resources