git pull doesn't update files on pythonanywhere - python

I am following Django Girls Tutorial, I am on html section - https://tutorial.djangogirls.org/en/html/ - where git is updated than files are transferred to pythonanywhere by using git pull. My git has been updated however, after git pull on pythonanywhere I do not see updated Files. I rerun my web app as well, no changes.
After git pull I see files changes, insertions and deletion, but no files updated in FILES section.
Thank You for help,
Bogdan
enter image description here

I found this if your willing to give it a shot. It allows you to reload and push all to your pythonanywhere site. https://blog.pythonanywhere.com/87/

Related

How can i Pull a single file change from github?

Hello Stackoverflow and hello to all the developers .
Sir actually i am running in a problem .
I've hosted my new blog website on a linux vps , and when i hosted that it was just a bare minimum ,
now it's running perfectly on that vps and on my computer i am trying to add more features to it . but there is a problem when i push all changes to github and pull that changes to that vps it will changing my settings file , which is extremely important . now i am looking for a solution that i can pull single file changes not entire .
for example
i made image responsive in style.css file okay and push that change to github
how can i download that single change, single file change or that single file (style.css) to that vps?
if you will help me i will be very gladful to you
git fetch --all
git checkout origin/master -- <your_file_path>
git add <your_file_path>
git commit -m "<your_file_name> updated"
First checkout to branch from where you want to pull.
This is similar to this question: Git: How to pull a single file from a server repository in Git?
So..
git fetch
then
git checkout (-p|--patch) [] [--] […​]
see https://git-scm.com/docs/git-checkout

How do you create a GitHub Repository so that I can automatically import and export python scripts?

I'm brand new to Github but experienced using Python and just wondered how to use both so that I can upload and export scripts for others to use! I have created a repository to start with! Any help would be great.
for a beginner with GitHub as you, it will be great to use GitHub desktop.
Download it and clone the repository you created. Now move your files into the repository folder. In GitHub desktop add a quick summary about what you changed and click the "commit" button. With this you created a timestamp in the history of your repository, but it is only available on your local machine. Now click the "push origin" button on the top in GitHub desktop. This will push the changes to the repository. When your repository will become more popular, people might want to commit changes to it. To do this, they will open a pull request and you just need to approve it and their changes will be merged into your repository. I hope this helped. If you don't understand anything about GitHub, feel free to ask. :)

How to fix image is not showing in heroku deployed django app

I have a Blog created with Django 3.x. When I run the project on my local server then it works fine. So, I deployed my project to heroku and here is the link bblog-shovon.herokuapp.com/. Then the project was working fine. My project git link https://git.heroku.com/bblog-shovon.gitThen I created a post and then I gave it a thumbnail and finally everything was fine. But, After sometime when i revisit the site then every image were gone. I didn't found them. And when I tried to open the image on another tab then it shows this Error message screenshot. When I am writing this question then I created a new post and after publishing this this posts image is working. But, older image is not working.
Then, How can i fix this problem? Please help me!!
Heroku flushes the filesystem to the latest commit. So you will have to use third-party plugins such as AWSBucket, etc.
With Heroku the filesystem is not persisted so you will lose media files occasionally. Use S3 or some other provider to store your user-uploaded media (also your static files if you want, otherwise use whitenoise). Django-storages makes it very easy.

How to deploy changes made to my django project, which is hosted on pythonanywhere?

I am new to git and Pythonanywhere. So, I have a live Django website which is hosted with the help of Pythonanywhere. I have made some improvements to it. I have committed and pushed that changes to my Github repository. But, now I don't know that how to further push that changes to my Pythonanywhere website. I am so confused. Please help!!! Forgive me, I am new to it.
You need to go to the repo on PythonAnywhere in a bash console, run git pull (You may need to run ./mange.py migrate if you made changes to your models) and then reload the app on "Web" configuration page on PythonAnywhere. .

Hosting build documentation from a pull request on GutHub

I work on an open source project.
In order to facilitate the review of sphinx documentation changes in our Python source code, we’d love if we could somehow get the documentation generated and hosted somewhere for each pull request, like we already do with coveralls for our code coverage.
Pushing new commits would update the generated doc for that pull request. We’ll be soon be adding doc generation to our travis build to find sphinx errors, but doing a final visual review would still need to be done locally by pulling the branch and generating it locally.
Is there any GitHub app that offers to host a webpage generated on a pull request?
2018: You can make your own GitHub repository serve pages with GitHub pages.
If you generate your documentation in the gh-pages branch or the doc/ subfolder of your main branch, you can have both your codebase, and your doc in the repo.
See for instance lneuhaus/pyrpl issue 85, which illustrates how to automate Sphinx for Python documentation
cd doc/sphinx
sphinx-apidoc -f -o source/ ../../pyrpl/
make html
You can automate that using Syntaf/travis-sphinx:
A standalone script for automated building and deploying of sphinx docs via travis-ci
Update Q4 2022: the OP fronsacqc adds in the comments:
We ended up pushing the documentation generated by the build on an S3 folder tagged with the static hosting flag, so now every build's documentation is hosted on S3 for a couple of days.

Categories