I am working on a project which also contains a got repo initialized in it, we are multiple people working on same project but on different branches,my scenario is one of my friends pushes code to his branch then i pull that code from his branch so now i am having merged code(his and mine) now i push the code to my branch that contains final code.
Now the problem is when i pulled code from his branch then my django server isn't starting, i think there is a directory issue, one more problem is when is witch to project view in pycharm it shows limited files with yellowish background and when i switch to project files it shows all files i am attaching both pictures
My project directory
project View
Project_files_vies
Related
I’m working on a project that will need to load python code files dynamically from GitHub on launch. Here’s what it needs to look like:
User asks us to launch an instance for them and provides us with a GitHub url
We have an existing docker with our own python code (a server) that will be using those files from GitHub
We need to launch the docker with our own code, but subbing in parts that we got from the users GitHub, basically creating a server with half our code, half user code
In other words, we need to launch a docker that has some pre planned code from us, and some dynamic code from the user.
Any ideas how to do this? I’ve seen many examples of docker files that load code from GitHub, but I’m having a hard time figuring out how to make it half our code, and half code dynamically from GitHub on run.
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.
I recently started using Github and was wondering if I should be working directly in the Github repository folder, or working in a different folder and then adding new files to the repository later?
GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere and you can create one branch for you and update it to master branch.
I am new to Django and was following the tutorial here (https://simpleisbetterthancomplex.com/series/2017/09/04/a-complete-beginners-guide-to-django-part-1.html#hello-world) to get my first application running. I could not reference my application so I decided to name everything exactly as is in the tutorial in another Python project. I am unable to import view from boards no matter what I do (change it to projectname.appname and a number of different variations that I found on here). I have tried this tutorial on another computer I do not have access to at the moment and can confirm that it works usually. Is this an issue with PyCharm/my Python environment?
Project Structure
Error I am receiving
Fixed
To resolve this I marked my Django Project Folder (not Python Project Folder) as root.
So I'm working to deploy my python code to my AWS ec2 instance and at step four of the second part
Create a Django Project... more like creating a waste of your time. Five hours trying to get this setup. Tried seven different setups over the last 3 months.
AWS seems like an overly complicated system setup for enterprise class businesses and they thumb their nose at students trying to learn.
The customer service guy said "go watch youtube training videos" who tells a frustrated potential customer that?
Your salesman came to UW and talked a great game, discounting knowledge to get their product setup vs digitalocean or Heroku.
I tried to post in the AWS forums and I'm not allowed as a registered student developer?
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
It says to make a .ebextension file and add stuff to it but it doesn't say how to create a .ebextension file and mac says that files that begin with dots are reserved for system files so am I reading this wrong?
How can I proceed with this "simple server setup" that is neither simple nor setup if its missing info?
It is not .ebextensions file, the link you provided mentioned create a directory called .ebextensions, it is a folder name, and you can make it by:
mkdir .ebextensions
Then create a configuration file django.config in the folder, it would be
~/ebdjango/.ebextensions/django.config