Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
NoReverseMatch in Django after create Object
After create Object without template, I am trying to return tu the same list view but it send the reverse match error. This is my code: Function to create an object from other model: def pieza_fast_create(request, id_reporte): template_name = "metalitec/reportes_detalle.html" context_object_name = "obj" reporte = Reporte.objects.get(id=id_reporte) pieza=Pieza.objects.create(reporte=reporte, descripcion="PIEZA 1") piezas = Pieza.objects.all() return render(request, template_name, {'id_reporte':id_reporte,'reporte':reporte, 'piezas':piezas}) Current View: class ReporteDetalleView(LoginRequiredMixin, generic.TemplateView): model = Reporte template_name = "metalitec/reportes_detalle.html" context_object_name = "obj" #login_url = "bases:login" def get(self, request, *args, **kwargs): id_reporte = kwargs['id_reporte'] reporte = Reporte.objects.filter(id=id_reporte) piezas = Pieza.objects.filter(reporte__id=id_reporte) return render(request, self.template_name, {'id_reporte':id_reporte, 'reporte':reporte, 'piezas':piezas}) Urls: path('reportes/piezas/fast/<int:id_reporte>',pieza_fast_create, name='pieza_new_fast'), path('reportes/detalle/<int:id_reporte>',ReporteDetalleView.as_view(), name='reporte_detalle'), error: Reverse for 'pieza_new_fast' with arguments '('',)' not found. 1 pattern(s) tried: ['metalitec/reportes/piezas/fast/(?P<id_reporte>[0-9]+)$'] Thanks in advanced. -
Django db model alternative in node js
I have a model in Django DB in python. id = models.BigAutoField(db_column='xxxxxxxxx', primary_key=True) # 1 xxxxxx = models.ForeignKey('xxxxx', db_column='xxxxxx', blank=True, null=True, on_delete=models.DO_NOTHING) # 2 xxx_name = models.CharField(db_column='xxxxxx', max_length=100, blank=True, null=True) # 3 state = models.CharField(db_column='State', max_length=300, blank=True, null=True) # 4 class Meta: managed = False db_table = 'xxxxxxx' Which is dynamically creating join query or my SQL query based on a criteria selected_service_centres = class_name.objects.using('xxxxxx').only('id', 'xxxxx', 'xxxxx', 'address', 'xxxxx').filter(**conditions_query_dict).distinct() Is there any way I can create the same thing in node js. Is there any module which will work the same as Django DB. -
Django Static Files not Loading on Heroku, GCS deployment
So, I have created a django application and deployed it with Heroku. Static files (as well as media) are served by a GCS bucket. I am currently having a problem loading all of my static files. Notably, the png files are not loading, but everything else is. The png file requests return a 403 error, but the rest of the files (css, js, etc.) load fine. Furthermore, jpg images that were uploaded via media are returned without error. I have to assume that this is a GCS problem, but I'm not entirely sure of that. I have tried everything in including assigning permissions to my service agent, creating another service agent, and recreating another bucket with the same data. I have not had this problem when using GCS buckets with applications running on Google App Engine or GKE. Any point in the right direction would be great. This is the relevant part of my settings file. Note that I put the django_heroku.settings(locals()) call above this block of code intentionally, because it overrides these settings. DEBUG = False django_heroku.settings(locals()) DEFAULT_FILE_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage' STATICFILES_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage' GS_BUCKET_NAME = 'hello-world' GCS_URL = 'https://storage.googleapis.com/' STATIC_URL = '{}/{}/static/'.format(GCS_URL, GS_BUCKET_NAME) MEDIA_URL = '{}/{}/media/'.format(GCS_URL, GS_BUCKET_NAME) STATIC_ROOT = … -
how do I store an image in views file in Django
I am making a Django website where I need to display images selected by user. These are the things I've done: Html form for image: <form action="" method="POST"> {% csrf_token %} <div class="form-group"> <label >Article Logo</label> <input type="file" class="btn btn-primary" name="article_image"> </div> <input type="submit" class="btn btn-success"> </form> models.py class Content(models.Model): article_image = models.ImageField(upload_to = 'media', null=True) views.py def submit_article(request): if request.method == 'POST': a_image = request.FILES['article_image'] new_article.article_image = a_image new_article.save() I've added below code to settings.py to specify media directory: MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' Added below code to urls.py of the website: urlpatterns = [ path(r'admin/', admin.site.urls), url(r'', include('logio.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) The form is not able to add images to the media folder. If I'm adding images through the admin panel it works. Thanks in advance.... -
How can I dispaly more than one (different) model objects to one tempate django
I want to dispaly both models object in my index.html template, but its not working.. models.py enter image description here views.pyenter image description here -
why wappalyzer doesn't detect my site and my site technologies?
I've created a webpage with Django and python programming language. while I click on wappalyzer extension, It only shows 'Analytics' and 'JavaScript libraries'. It doesn't show any frameworks(Django) and programming languages(python). So, I went to wappalyzer and I looked up my website, but it didn't find any thing about my website. -
Custom ORM in Django. Based on Entity ID & Entity Type
My aim is to retrieve data from different model with the reference of entity type & entity id. Example: I have Customer model & Address model from django.db import models class Customer(models.Model): name = models.CharField(null=False, blank=False, max_length=255) email = models.EmailField(null=False, blank=False, unique=True) class Address(models.Model): entity_type = models.CharField(null=False, max_length=255) entity_id = models.PositiveIntegerField(null=False) address1 = models.CharField(max_length=255) address2 = models.CharField(max_length=255) for now i using raw query cursor.execute("SELECT * FROM customers AS cust INNER JOIN addresses AS addrs ON (cust.id = addrs.entity_id AND 'customer' = addrs.entity_type) WHERE cust.id IN (%s)", [ids]) But this is not Good solution. Take too much time when ids is in thousands of range. If is there any other way to archive those data. Then please give your solution in comments.. -
How to store password as Plaintext in Django
how to store password like "123abc" or "xyz123" -
Python Online Audio Streaming
I need to create a web application to steam live audio. Exactly something like that : a private radio podcast. This is my scenaio : A streamer is talking to microphone , there is a link to his/her live talking; and if you know the link , username and password you can listen this talking live. I will use Django. How can I open talker's microphone using python, and serving this to my users ? I know question is so unclear, but my problem is that complexity also. I know Django stuff but how I will listen "Talker's" microphone and how can I stream this talking . I am really struggling about streaming side. The question is about only "where to start, and how to stream live media?". Thanks. -
How to use django with sql server database from other server?
I'm planing to built an app using Django with SQL Server. But I'm going to develop the app in my computer but the database is already exist in other computer/server. How can I connect to that database in the other server and connect the Django which is in my computer? They are separate computers. -
How to make sceduled task properly in django using django-celery?
I new to django and recently i add django-celery 3.3.1 to my project. I want to add some scheduled task using celery from django admin but i cannot enabling worker It Return me an error : Exception Type: SyntaxError Exception Value: invalid syntax (redis.py, line 815) My django version : 3.0.3 python version : 3.7.1 How to make make it work properly? -
How to add custom title for form fields in Django?
I created this simple form: class FormsProject(forms.Form): fullname = forms.CharField( widget=forms.TextInput(attrs={'class': 'form-control mb-3', 'placeholder': 'Basir Payenda'})) Django = forms.BooleanField(widget=forms.CheckboxInput()) Flask = forms.BooleanField(widget=forms.CheckboxInput()) gender = forms.ChoiceField( widget=forms.RadioSelect(), choices=SELECT_GENDER) comments = forms.CharField(widget=forms.Textarea(attrs={ 'class': 'form-control mb-2', 'rows': 4, }), help_text='Write here your message!') and it looks like How do I add a title asking something like "Your favorite frameworks: " before those checkbox, let me illustrate it: Help me add that title before checkbox, thanks -
django, check if object is part of queryset not returning proper value
for some reason I keep getting 'False' output and iim not sure why.. this is my queryset and condition in my view def book(request): test = books.objects.all().values('user') print(test) print(request.user.id) if request.user.id in test: exist = True else: exist = False print(exist) this is the console output, im expecting True, but im not sure why it isn't searching through it correctly. is it cause it's a list of tuples? <QuerySet [{'user': 1}, {'user': 1}, {'user': 1}, {'user': 1}, {'user': 1}, {'user': 3}]> currently logged in user id: 1 False -
Django framework view doesn't show my many to one types using nested serializers
Hi I'm trying to make an Rest API with django rest framework but following the docs to nested serializers after making a post request putting the custom classes values the get request show me that it's empty when I did the post correctly. There is my models class: from django.db import models # Create your models here. class Pista(models.Model): color = models.CharField(max_length=10) km_pista = models.FloatField(default=0) def __str__(self): return '{}'.format(self.color) class Forfait(models.Model): precio = models.FloatField(default=0) edad = models.IntegerField(default=0) def __str__(self): return '{}'.format("Precio " + str(self.precio) + ' edad ' + str(self.edad)) class Estacion(models.Model): nombre = models.CharField(max_length=30) ciudad = models.CharField(max_length=15) pais = models.CharField(max_length=20) descripcion = models.CharField(max_length=300) pistas = models.ForeignKey(Pista, on_delete=models.CASCADE, null=True) forfaits = models.ForeignKey(Forfait, on_delete=models.CASCADE, null=True) km_esquiables = models.FloatField(default=0) def __str__(self): return '{}'.format(self.nombre) My serializers: class PistaSerializer(serializers.ModelSerializer): class Meta: model = Pista fields = ('color', 'km_pista') class ForfaitSerializer(serializers.ModelSerializer): class Meta: model = Forfait fields = ('precio', 'edad') class EstacionSerializer(serializers.ModelSerializer): pistas = PistaSerializer(read_only=True, many=True) forfaits = ForfaitSerializer class Meta: model = Estacion fields = ('nombre', 'ciudad', 'pais', 'descripcion', 'pistas', 'forfaits', 'km_esquiables') depth = 1 My Views: class EstacionViewSet(viewsets.ModelViewSet): queryset = Estacion.objects.all() serializer_class = EstacionSerializer and urls: router = routers.DefaultRouter() router.register(r'estaciones', views.EstacionViewSet) urlpatterns = [ path('', include(router.urls)), ] I think many to many is … -
Secrets in a Django app on Google AppEngine (GAE)
I'm trying to develop a Django app on GAE, and using CloudBuild for CI/CD. I'm wondering what's the best way to pass secrets to my app (DB credentials, etc). I was able to follow instructions at https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-secrets-credentials to read the secret from in my build step, and pass it in to my app as an environment variable. It's a bit hacky, but it works: - name: gcr.io/cloud-builders/gcloud entrypoint: 'bash' args: - '-c' - | TEST_PW=$(gcloud secrets versions access latest --secret=test-key) echo "TEST_PASSWORD=$${TEST_PW}" >> env_vars unset TEST_PW However, I'm not sure if this practice is safe. I dumped the env variables in running in my app (using print(dict(os.environ)) and the only sensitive values there are the secrets I passed in (all other GAE app related values are non-sensitive data). So questions: 1) Is storing secrets in env variables safe in an app in AppEngine, i.e. can they be stolen by "somehow" dumping them through print(dict(os.environ))? 2) Or is the better option to fetch them from Secret Manager in Django (for e.g. in settings.py)? (I'm worried about restarts or version switches here, and if they'll affect this option) 3) Or is there an even better option? Thanks. -
models.OneToOneField(User, on_delete=models.CASCADE) is not working. User table is updating but not the UserModelInfo Table
I am able to store an user in the User table however the UserModelInfo table is not getting updated. project github link - https://github.com/souradip-code/Django_myproject_1 So what I basically want is an OneToOne relationship with django built-in User class with UserInfo Class and if I add one user, both tables should update and every user from the UserInfo table should point to an user in the User table. Here is what I've done so far - Models.py JOB_CHOICES = ( (1, "Designer"), (2, "Manager"), (3, "Accounting") ) CONTACT_CHOICES = ( (1, "+91"), (2, "+92"), (3, "+93"), ) class UserInfoModel(models.Model): user = models.OneToOneField(User,on_delete=models.CASCADE) fullname = models.CharField(max_length=264,unique=True) email = models.EmailField(max_length=255) contact_pref = models.IntegerField(choices=CONTACT_CHOICES, default=1) contact_suff =models.IntegerField() job= models.IntegerField(choices=JOB_CHOICES, default=1) pwd1 = models.CharField(max_length=20) pwd2 = models.CharField(max_length=20) def __str__(self): return user.fullname enter code here Forms.py JOB_CHOICES = ( (1, "Designer"), (2, "Manager"), (3, "Accounting") ) CONTACT_CHOICES = ( (1, "+91"), (2, "+92"), (3, "+93"), ) class RegisterForm(forms.ModelForm): fullname = forms.CharField(max_length=264,widget=forms.TextInput(attrs={'class':'form-control'})) email = forms.EmailField(max_length=255,widget=forms.EmailInput(attrs={'class':'form-control'})) contact_pref = forms.ChoiceField(choices=CONTACT_CHOICES,widget=forms.Select(attrs={'class':'custom-select'})) contact_suff =forms.IntegerField(widget=forms.NumberInput(attrs={'class':'form-control'})) job= forms.ChoiceField(choices=JOB_CHOICES,widget=forms.Select(attrs={'class':'custom-select'})) pwd1 = forms.CharField(max_length=20,widget=forms.PasswordInput(attrs={'class':'form-control'})) pwd2 = forms.CharField(max_length=20,widget=forms.PasswordInput(attrs={'class':'form-control'})) class Meta: model = UserInfoModel # fields = "__all__" exclude =("user",) Here please check the Meta class configuration Views.py def user_register(request): template = 'basic_app/register.html' if request.method == 'POST': form … -
return primary key from CreateAPIView after creating an object
Django 3. I am posting data to a CreateAPIView in django. I can POST the object to the database no problem. What I want to do is return the primary key from the created object to my frontend (Angular 8). I am using that primary key in my redirect url to load the next page. -
Why Django Query for Two DateTimeFields Equality Does Not Work?
I have a model: class Host(models.Model): create_date = models.DateTimeField(auto_now_add=True) update_date = models.DateTimeField(auto_now=True) I would like to filter out all objects that have create_date.date() == update_date.date(), so I use this Django Query: Host.objects.filter(create_date__date=F("update_date__date")).count() Assuming, my database does have hosts that have create_date.date() == update_date.date(), so I expect the return value for count() > 0; however, I get 0 as the result. Meanwhile, if I use this query: Host.objects.filter(create_date__date__lt=F("update_date__date")).count() I will get my expected result. Question: Why cannot I do equality comparison for Django query on DateTimeField? -
Apache/2.4.29 (Ubuntu) Server at domain Port 443
I have a VM Instances server installed with Apache2, mod_wsgi and Django. The server has both python 2.7 and 3.4 installed which comes with the server os Ubuntu. Error log : tail -f /var/log/apache2/error.log [Thu Apr 23 03:19:57.493146 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] Traceback (most recent call last): [Thu Apr 23 03:19:57.493207 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] File "/var/www/WFH_project/wfhProject/wfhProject/wsgi.py", line 16, in <module> [Thu Apr 23 03:19:57.493269 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] application = get_wsgi_application() [Thu Apr 23 03:19:57.493363 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] File "/var/www/WFH_project/myDjangoEnv/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application [Thu Apr 23 03:19:57.493369 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] django.setup(set_prefix=False) [Thu Apr 23 03:19:57.493375 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] File "/var/www/WFH_project/myDjangoEnv/lib/python3.6/site-packages/django/__init__.py", line 24, in setup [Thu Apr 23 03:19:57.493379 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] apps.populate(settings.INSTALLED_APPS) [Thu Apr 23 03:19:57.493385 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] File "/var/www/WFH_project/myDjangoEnv/lib/python3.6/site-packages/django/apps/registry.py", line 83, in populate [Thu Apr 23 03:19:57.493389 2020] [wsgi:error] [pid 4289:tid 140381721962240] [remote 122.228.19.79:35227] raise RuntimeError("populate() isn't reentrant") -
Customizing django admin panel
So I have a very simple and new Django site up and running, and I'm really wanting to customize the look of the admin panel. I would basically like it to extend from my base.html. I have read the docs on Overriding admin templates but it hasn't quite answered my question as I don't believe the file I am looking for (base.html) is listed in their files that you're able to override. I've done the only thing I had in mind which was copying the templates/admin/base.html and pasting it in my own templates/admin directory, extending my base, and removing their header sadly this is what I got from that, which is close but not really. -
Django deploy to Heroku No module named 'django_heroku'
I'm tryin to deploy to Heroku and before this error I was getting: ModuleNotFoundError: No module named 'django-tables2' Then I installed django-heroku via pip install django-heroku, followed the instructions on how to set it up. I disabled the collect static for heroku pushed my master branch and everything is fine, but once I do: heroku run python manage.py migrate I get the: ModuleNotFoundError: No module named 'django_heroku' the complete traceback is this: Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/base.py", line 341, in run_from_argv connections.close_all() File "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line 225, in close_all for alias in self: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line 219, in __iter__ return iter(self.databases) File "/app/.heroku/python/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line 153, in databases self._databases = settings.DATABASES File "/app/.heroku/python/lib/python3.7/site-packages/django/conf/__init__.py", line 76, in __getattr__ self._setup(name) File "/app/.heroku/python/lib/python3.7/site-packages/django/conf/__init__.py", line 63, in _setup self._wrapped = Settings(settings_module) File "/app/.heroku/python/lib/python3.7/site-packages/django/conf/__init__.py", line 142, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File … -
Submiting a form using JavaScript in Django is not working
I try to submit a form by Javascript in Django. The form is working The Javascript is working The submit() function is not working. My testing HTML code: <form method="post" id='testForm' action="www.google.com"> {% csrf_token %} <a onclick="onDeleteButtonClick()" href="">Delete</a> <input type="submit" value="Submit"> </form> My testing Javascript code: <script type="text/javascript"> function onDeleteButtonClick(){ console.log("before"); document.getElementById("testForm").submit(); console.log("after"); } </script> 3 Results: This part of the web page looks like this: enter image description here Really simple A When I click the Submit button: It is working, the form is been submit. B When I click the delete link: It is not working. The log in Javascript works, I can see "before" and "after" in the console. C I also test this on a normal web page (without Django framework), the Submit button, and the Delete link is all working. So I think it must be something related to Django. If anyone knows why this happened, please let me know~ Thank you! -
My css file doesn't work properly on my django template! How can I fix it?
Hello everyone I have a question about the css file working with django template. I don't know why but I have done several projects with django and the problem is that sometime the css file didn't work properly on my django template. When I made change on the css file and I reload the browser page nothing happend but when I restart my computer or turn off and turn on again the things that I changed on the css file now happen and if I make some changes again the css file and reload the browser, nothing happen again unless I restart my computer or turn off and turn on again. This problem happened to me quit often, I have no idea what's wrong with django. How can I fix it? This is my setting.py file """ Django settings for beyDimensions project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ # SECURITY WARNING: keep the … -
django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace
I have a problem since I tried to use get_absolute_url(self): to enter in a url beyond a photo. When I used , my index.html stopped running. Here I have the top level url.py from django.contrib import admin from django.urls import path, include from simplemooc.core import views, urls from simplemooc.courses import views, urls from django.conf import settings from django.conf.urls.static import static urlpatterns = [path('admin/', admin.site.urls), path('', include(('simplemooc.core.urls', 'simplemooc'), namespace='core')), path('cursos', include(('simplemooc.courses.urls', 'simplemooc'), namespace='courses'))] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Here courses/url.py from django.urls import path from simplemooc.courses import views urlpatterns = [path('', views.index, name='index'), path('/<slug:slug>/', views.details, name='datails')] Here courses/model.py from django.db import models from django.urls import reverse class CourseManager(models.Manager): def search(self, query): return self.get_queryset().filter( models.Q(name__icontains=query) | \ models.Q(description__icontains=query) ) class Course(models.Model): name = models.CharField('Nome', max_length=100) slug = models.SlugField('Atalho') description = models.TextField('Descrição Simples', blank=True) about = models.TextField('Sobre o Curso', blank=True) start_date = models.DateField( 'Data de Início', null=True, blank=True ) image = models.ImageField( upload_to='courses/images', verbose_name='Imagem', null=True, blank=True ) created_at = models.DateTimeField( 'Criado em', auto_now_add=True ) updated_at = models.DateTimeField('Atualizado em', auto_now=True) objects = CourseManager() def __str__(self): return self.name def get_absolute_url(self): return reverse('courses:datails', (), {'slug': self.slug}) class Meta: verbose_name = 'Curso' verbose_name_plural = 'Cursos' ordering = ['name'] And here courses/views.py from django.shortcuts import render, get_object_or_404 … -
Docker can't open file to run the python application in a container with django using docker-compose
I'm new to Django. I want to run the code of the example at https://github.com/wsvincent/djangoforprofessionals/tree/master/ch1-hello. The container is created but it doesn't run because it got interrupted since Docker can't start the application showing the following error. Creating ch1-hello_web_1 ... done Attaching to ch1-hello_web_1 web_1 | python: can't open file '/code/manage.py': [Errno 2] No such file or di rectory ch1-hello_web_1 exited with code 2 I'm using a Windows with windows 7 professional, therefore I have the Docker Toolbox working fine with other dockerized apps. I accessed the docker image and confirmed the file is in the container. So I would like to know if it could be Linux permissions when Docker tries to access the file. The folder /code inside the docker image: -rwxr-xr-x 1 root root 361 Apr 23 02:11 Dockerfile -rwxr-xr-x 1 root root 157 Apr 11 21:31 Pipfile -rwxr-xr-x 1 root root 1624 Apr 11 21:31 Pipfile.lock -rwxr-xr-x 1 root root 131072 Apr 11 21:31 db.sqlite3 -rwxr-xr-x 1 root root 103 Apr 23 02:11 docker-compose.yml drwxr-xr-x 2 root root 4096 Apr 23 00:38 hello_project -rwxr-xr-x 1 root root 633 Apr 11 21:31 manage.py drwxr-xr-x 3 root root 4096 Apr 23 00:38 pages [1]: https://i.stack.imgur.com/u3KEn.png Screenshot of the …