Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Exporting data with dumpdata when using django-taggit
I am using django-taggit for tags, and would like to get my data from a development instance of my app to my production instance. Currently, I am using manage.py dumpdata and loaddata with natural keys to export and import the data. The problem is that this leaves out the tags. I could tell dumpdata to include the taggit app, but that doesn't use natural keys - so if the IDs are different on the server (they will be), then the data doesn't match up. I've tried to achive custom serialisation by subclassing TaggableManager and adding serialize=True and a custom value_to_string method. The idea was to serialize tags as a comma separated string, but this didn't do anything. Any idea how I can serialize my tags, so I can move data between databases? -
Access Apache 2.4's localhost from another system in same network
I am running a Django application on Apache2.4 server. I wish to access the page http://localhost:8081/home from another system. I'm in a corporate environment so both server and client machine will be inside a same private network. So the issue is, I am being able to access the page by using the server IP address, on the server machine (http://xx.xx.xx.xx:8081/home ) but the page is not being loaded when I use it on the client machine. ( similarly, I can access the page as systemname.dns.com:8081/home from server machine but not from client machine) So what can exactly be my problem and how can I solve it? Modified part of httpd.conf: LoadFile c:/users/username/appdata/local/programs/python/python36/python36.dll LoadModule wsgi_module c:/users/username/lms/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64.pyd WSGIScriptAlias / c:/users/username/lms/LMS/wsgi.py WSGIPythonHome c:/users/username/lms WSGIPythonPath c:/users/username/lms <Directory "C:/Users/username/lms"> <Files wsgi.py> Require all granted </Files> </Directory> -
About forms and instance
Sometimes, I have to display multiple checkbox to check or uncheck some items. So the form could have some checkbox already checked. To do this, I use form = myform(instance=manyTomanyField). The problem here, I can't do it because my many to many field has a through parameter : games = models.ManyToManyField(Games, through="Relation" verbose_name="Jeu") Indeed, I'm using through="Relation". That's why I have this error message : AttributeError at /team/recruitment/ 'ManyRelatedManager' object has no attribute '_meta' views.py : def view_team_recruitment(request): if request.user.is_authenticated(): media = settings.MEDIA form = TeamRecruitmentForm(instance=Team.objects.get(owner=request.user).games) Models.py : class Team(models.Model): name = models.CharField(max_length=15, null=False) tag = models.CharField(max_length=4, null=False) description = HTMLField(blank=True, null=True, default='') logo = models.FileField(upload_to=user_directory_path, validators=[validate_file_extension], blank=True, null=True) games = models.ManyToManyField(Games, through="Relation", verbose_name="Jeu") owner = models.ForeignKey(User, verbose_name="Créateur", related_name='myteam') date = models.DateTimeField(auto_now_add=True, auto_now=False, verbose_name="Date de création") update = models.DateTimeField(auto_now=True, verbose_name="Dernière modification") def __str__(self): return self.name class Relation(models.Model): on_team = models.ForeignKey(Team, verbose_name="Equipe") on_game = models.ForeignKey(Games, verbose_name="Jeu") on_plateform = models.ForeignKey(Plateform, verbose_name="Plateforme") recruitment = models.BooleanField(default=True) class Plateform(models.Model): name = models.CharField(max_length=100, unique=True, null=False, verbose_name="Plateforme") guid = models.CharField(max_length=100, unique=True, null=False, verbose_name="Abréviation") date = models.DateTimeField(auto_now_add=True, auto_now=False, verbose_name="Date de création") update = models.DateTimeField(auto_now=True, verbose_name="Dernière modification") def __str__(self): return self.name class Games(models.Model): guid = models.CharField(max_length=100, unique=True, null=False, verbose_name="GUID") title = models.CharField(max_length=100, null=False, verbose_name="Titre") logo = models.FileField(upload_to='media/games/', validators=[validate_file_extension], blank=True, … -
the meaning of API in Model class API - django
I could not get the meaning of API in Model class. I understand the definition of REST API thoroughly, In fact, I study a book in django in which a statement I encountered is This document contains all the API references of Field including the field options and field types Django offersand I think this API is different from REST API. Model API reference document: https://docs.djangoproject.com/en/1.11/ref/models/ -
Issue with Synapse API retreiving user nodes - django/python
I am working on a django app and I am integrating SynapsePay API into my project. I am having an issue with the retrieval of the nodes list. The main issue is that the api is supposed to responds in json format, but it is returning a class / set of lists. Does anyone know how to correctly integrate this part and send this request and response.... Here is my code and the response. def listedLinkAccounts(request): # the following grabs the currenly logged in users record and profile within # the application currentUser = loggedInUser(request) currentProfile = Profile.objects.get(user = currentUser) # the following will grab the users synapse id from the users local profile. user_id = currentProfile.synapse_id print(user_id) # the following will grab the entire synapse profile by sending an api request # with the users synapse profile. synapseUser = SynapseUser.by_id(client, str(user_id)) # the following are options for how to display and structure the response for # all of the different nodes linked to the users account options = { 'page':1, 'per_page':20, 'type': 'ACH-US', } # the following is the request and response with all of the users linked nodes # ready to be processed and storage of certain information. … -
Whats the default permissions generator automatically of a model?
When I create a model: class Info(models.Model): name = models.CharField(max_length=26) detail = models.CharField(max_length=16) class Meta: permissions = ( ("add_info", "Can view info"), # C ("read_info", "Can view info"), # R ("update_info", "Can update info"), # U ("delete_info", "Can delete info") # D ) When I makemigrations, but there comes error: app07.Info: (auth.E005) The permission codenamed 'add_info' clashes with a builtin permission for model 'app07.Info'. app07.Info: (auth.E005) The permission codenamed 'delete_info' clashes with a builtin permission for model 'app07.Info'. So, when I create a user the model will create permissions automatically. But you see, the READ and UPDATE permissions are not read_info and update_info, so whats the default permissions of a model? -
Run django api from postman: CSRF verification failed
I'm trying to run an api using postman. My application is developed in django 1.11.6 using python 3.5. My app is installed on an ubuntu server. These are the steps that I follow: Click on "import" tab on the upper left side. Select the Raw Text option and paste my cURL command. Hit import and I have the command in your Postman builder Press send button. My curl command is: curl -i -H 'Accept: application/json; indent=4' -X POST https://127.0.0.1/users/:register/ -d "id=111&firstname=zinonas&yearofbirth=2007&lastname=Antoniou&othernames=" The error I get is Forbidden (403) - CSRF verification failed. Request aborted. When I run the curl command via cygwin, it's working properly. This is the view function that I'm using: class ApiUserRegister(APIView): permission_classes = () serializer_class = RegisterUserSerializer def post(self, request): serializer = RegisterUserSerializer(data=request.data) # Check format and unique constraint serializer.is_valid(raise_exception=True) data = serializer.data if User.objects.filter(id=data['id']).exists(): user = User.objects.get(id=data['id']) is_new = "false" resp_status = status.HTTP_200_OK else: user = User.objects.create(id=data['id'], firstname=data['firstname'], yearofbirth=data['yearofbirth'], lastname=data['lastname'], othernames=data['othernames']) user.save() is_new = "true" resp_status = status.HTTP_201_CREATED resp = {"user": serializer.get_serialized(user), "isnew": is_new} return Response(resp, status=resp_status) -
get a file with API and map to database in django framework
I am using django with python 3. I want to create a REST-API that get's a file and map's it to the database. The data in the file is not JSON but it's CSV. Thank's for any help -
The Core of Django is a modern string format:` "{ }".format(dict)`
I am newbie to Django for a month.it prompts me to think that Django's core is python's modern string format. "{key}".format(dict) #Compare to render(request, name_of_a_string_of_html, dict) as for iteration and condition: {% if %}{% endif %} {% for in %} {% endfor %} % if % is 'open html tag' imitating <p>. the outer {} is modern string format symbol. % endif % is close tag For {{ variable }} is the same, the inner is html tag while the outer is string modern format symbol. Does my understanding hit the core or wrong technically? -
logic to integrate Django REST framework in existing app
I've a set of django Class based views: CreateView, UpdateView, etc.. with crispy-forms. I've looked at documentation of DRF and seen viewsets.ModelViewSet that make the api page available instead of createview and updateview. Now I miss how I can assign my old crispy-form to the api view. I can convert my previous views with forms to call the new modelviewset? In the first page of documentation it talk about crispy-form, but I cannot find an example. Thanks, BR -
Hindi font is not displaying correct words in the created pdf using python reportlab pdf library
I am using on reportlab pdf library in django framework in order to create pdf reports in hindi language.I am getting data from PostgreSql database as mention below format. waterdate month year rivername stationname distname 2011-06-22 00:00:00 June 2011 नयार मरोरा पौड़ी 2011-06-22 00:00:00 June 2011 गंगा हरिद्वार हरिद्वार 2011-06-22 00:00:00 June 2011 गंगा नरोरा/डी0एस0 बुलन्दशहर 2011-06-22 00:00:00 June 2011 गंगा फतेहगढ़ फर्रूखाबाद 2011-06-22 00:00:00 June 2011 गंगा गुमटिया कन्नौज I have written following code to display above table into pdf file. printing.py from reportlab.lib.pagesizes import letter,A4 from reportlab.platypus import SimpleDocTemplate,Paragraph,Table,TableStyle from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.enums import TA_CENTER,TA_JUSTIFY from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont from .models import Rainfall pdfmetrics.registerFont(TTFont('Hindi1', 'gargi.ttf')) class printReport: def rainfall_report(self): buffer = self.buffer doc = SimpleDocTemplate(self.buffer,rightMargin=10,leftMargin=10,topMargin=25,bottomMargin=25,pagesize=self.pagesize) styles = getSampleStyleSheet() styles.add(ParagraphStyle(name="TableHeader",alignment=TA_CENTER,)) styles.add(ParagraphStyle(name="ParagraphTitle", fontSize='11',alignment=TA_JUSTIFY,fontName="FreeSansBold")) styles.add(ParagraphStyle(name="Justify", fontSize='11',alignment=TA_JUSTIFY,fontName="FreeSansBold")) data = [] data.append(Paragraph( 'Rainfall Data', styles['Title'])) data.append(Spacer(1,12)) table_data =[] table_data.append([ Paragraph('Date', styles['TableHeader']), Paragraph('Month', styles['TableHeader']), Paragraph('Year',styles['TableHeader']), Paragraph('River Name',styles['TableHeader']), Paragraph('Station Name',styles['TableHeader']), Paragraph('District Name',styles['TableHeader']) ]) rainfall_data = Rainfall.objects.all()[:10] for rainfall in rainfall_data: table_data.append([ rainfall.waterdate, rainfall.month, rainfall.year, rainfall.rivername, rainfall.stationname, rainfall.districtname ]) user_table = Table(table_data,colWidths=[doc.width/7.0]*7) user_table.hAlign = 'CENTER' user_table.setStyle(TableStyle( [ ('INNERGRID', (0,0), (-1,-1), 0.25 , colors.black), ('BOX',(0,0),(-1,-1,),0.5, colors.black ), ('VALIGN',(0,0),(-1,0), 'MIDDLE'), ('BACKGROUND',(0,0),(-1,0), colors.gray ), ('TEXTCOLOR', (0,1), (-1,-1), colors.black), ('VALIGN',(2,1),(-3,-1),'MIDDLE'), ('ALIGN',(0,1),(-1,-1),'CENTRE'), ( 'FONT' … -
Django: access list of models belong of admin from admin console
I am sure this question has been asked before but I have not found anything regarding admin console. The database relationship is as follows: Host can have multiple students but a student has only one host (one-to-many or many-to-one depends on how we look at the problem). Below is my model setup: from django.db import models # Create your models here. class Student(models.Model): host = models.ForeignKey("Host", blank=True, null=True) fullname = models.CharField(max_length=255, blank=True, null=True) major = models.CharField(max_length=255, blank=True, null=True) email = models.CharField(max_length=255, blank=True, null=True) phone = models.CharField(max_length=255, blank=True, null=True) country = models.CharField(max_length=255, blank=True, null=True) interests = models.CharField(max_length=255, blank=True, null=True) date = models.CharField(max_length=255, blank=True, null=True) attendance = models.IntegerField(blank=True, null=True) university = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = True db_table = 'student' class Host(models.Model): host_id = models.AutoField(primary_key=True) fullname = models.CharField(max_length=255, blank=True, null=True) email = models.CharField(max_length=255, blank=True, null=True) phone = models.CharField(max_length=255, blank=True, null=True) address = models.CharField(max_length=255, blank=True, null=True) max_guests = models.IntegerField(default=5, blank=True, null=True) preference = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = True db_table = 'person' I can access host of a student by using .host (e.g. Student.objects.first().host) and also from a dropdown in django admin console. I can also access a list of students of a particular host like this: list_of_students_of_first_host = … -
list tables names of postgresql database in django
I use Cassandra Nosql DB as my backend in django application, but i want to connect to postgresql database only to list tables name for this database, i configure it successfully but can't show tables name from database scheme. this is my code in view.py: def postgresConf(request): conn_string = "host='localhost' dbname='demo' user='postgres' password='postgres'" conn = psycopg2.connect(conn_string) corsor = conn.cursor() corsor.execute("SELECT * FROM pg_catalog.pg_tables WHERE schemaname != 'pg_catalog' AND schemaname != 'information_schema';") latest_question_list=corsor.fetchall() template = loader.get_template('postgresConf.html') context = { 'latest_question_list': latest_question_list, } return HttpResponse(template.render(context, request)) -
ImportError at /accounts/register/ No module named 'honeygen'
i have no idea how to get rid of this error . i did read about change the sys.path but i dont understand how to do it because its not working at all . can someone help me to fix this error ? why i still cannot get rid of this error . its already 4 hours since i try to fix this error ImportError at /accounts/register/ No module named 'honeygen' Traceback: File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\core\handlers\exception.py" in inner 41. response = get_response(request) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\core\handlers\base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\core\handlers\base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\Adila\Documents\tryFOUR\src\register\views.py" in register 13. user = form.save(commit=False) File "C:\Users\Adila\Documents\tryFOUR\src\custom_user\forms.py" in save 50. user.set_password(self.cleaned_data["password1"]) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\contrib\auth\base_user.py" in set_password 105. self.password = make_password(raw_password) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\contrib\auth\hashers.py" in make_password 79. hasher = get_hasher(hasher) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\contrib\auth\hashers.py" in get_hasher 124. return get_hashers()[0] File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\contrib\auth\hashers.py" in get_hashers 91. hasher_cls = import_string(hasher_path) File "C:\Users\Adila\Envs\tryFOUR\lib\site-packages\django\utils\module_loading.py" in import_string 20. module = import_module(module_path) File "C:\Users\Adila\Envs\tryFOUR\lib\importlib\__init__.py" in import_module 126. return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\Adila\Documents\tryFOUR\src\honeywordHasher\hashers.py" in <module> 11. from honeygen import (generate_word, generate_tough_nut, TOUGH_NUT_PROBABILITY, Exception Type: ImportError at /accounts/register/ Exception Value: No module named 'honeygen' i cannot submit my registration form because i stil have this error . i dont know what … -
How to properly check whitelist in django-registration-redux custom RegistrationView
I'm getting in the code world, starting with python and web, and for my first project I decided to make a system for my college (I believe it's simple). Until now I was solving the problems that came up by looking for tutorials and forums (like stackoverflow). But I'm close to finishing the first part of the project (user authentication), and one of the problems already cost me long hours. I'm using Django 1.11 Bootstrap 4.0 Django registration redux 1.8 Python 3.5.2 This project requires a user creation white-list. Only user with an authorized R.A (nine numbers) and email can register on the site. I did the page to check up (like this one: check up) where the user types their R.A and email, then the system checks if he is able to register (it works very well) After the check-up, the user is redirected to the registration page which is a django-registration-redux page customized, that prepopulate the R.A and email fields with which they were checked (like this: register). The values are passed from allow_registration() to custom_registration using django.sessions. To to this, I've changed the registration URLconfig webapp/urls.py: # ... Imports app_name = 'webapp' urlpatterns = [ # Check … -
Django url giving error
Hey I am getting this error when I try to run my Django server "django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues: ERRORS: ?: (urls.E004) Your URL pattern [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] is invalid. Ensure that urlpatterns is a list of url() instances. events.SystemLog.text: (fields.E121) 'max_length' must be a positive integer. events.SystemLog.type: (fields.E121) 'max_length' must be a positive integer. " I do not know what is wrong. -
How to constantly run a python script on a Webserver
I have just coded a trading algorithm and some analytics software for the stock market which in itself works fine. Since my computer is not always running or internetconnection is not running perfectly I would like to source the script out and put it on a Webserver for example, where it would run all day and night. Do you guys now I could do that? I would also like to build a user interface using django to monitor live performance. Does anybody know what would be necessary to implement these steps? Thanks in advance and kind regards Marcel Kresse -
unresolved error of AbstractBaseUser from the Django example
When I read the Django document: customize user the example did not give the import AbstractBaseUser: class MyUser(AbstractBaseUser): identifier = models.CharField(max_length=40, unique=True) ... USERNAME_FIELD = 'identifier' I don't know how to import it, so there is unresolved error in my project. -
Which web framework is better to start for a good Python 3 programmer, Django or Flask?
I came across a very interesting and widely debated question during an info session on full stack. I was asked to explain why should I choose one of them to start learning and give good reasons for that. One possible answer I provided was choice of Django because of its huge community of developers, but at the same time, I was unaware of flask and its usability. I am more in Data Science and want to know which framework will suit the best to learn for people on same boat. Also not to forget compatibility of Python3 with them, just in case, issues varies with version as well. Please clarify my confusion on selection with your valuable reasoning. -
Django won't change url on redirect
Upon registration I check the user_type and move the user to one of three web pages. It is showing the correct page layout but the url stays the same as the registration page. EG: url says "http://127.0.0.1:8000/users/register/" Page shows: "user type 1 information" I thought using redirect should change the url but it doesn't seem to be working. views.py: def register(request): if request.method == 'POST': form = RegisterForm(data=request.POST) if form.is_valid(): # profile = form.save(commit=False) # profile.user = request.user # profile.save() user = form.save() profile = user.userprofile user_group = form.cleaned_data.get('user_type') profile.user_type = user_group profile.save() # form.save() username = form.cleaned_data.get('username') password = form.cleaned_data.get('password1') user_group = form.cleaned_data.get('user_type') user = authenticate(username = username, password = password) login(request, user) print(user_group) print(type(user_group)) if user_group == '1': return HttpResponseRedirect("/users/business/") # return # HttpResponseRedirect('http://127.0.0.1:8000/users/business/') # return HttpResponseRedirect(reverse('users:business')) # return redirect(request, 'users/business.html') elif user_group == '2': return redirect(request, 'users/student.html') elif user_group == '3': return redirect(request, 'users/tourist.html') # else: # return redirect('main:index') else: print(RegisterForm.errors) else: form = RegisterForm() def business_view(request): # return redirect(request, 'users/business.html') # return HttpResponseRedirect('users/business.html') # return redirect('/users/business/') return redirect('users/business') def student_view(request): return redirect(request, 'users/student.html') def tourist_view(request): return redirect(request, 'users/tourist.html') urls.py urlpatterns = [ # Login page #url(r'^login/$', login, {'template_name': 'users/login.html'}, name='login'), url(r'^login/$', login, {'template_name': 'users/login.html'}, name='login'), #url(r'^login/$', … -
How do I make sure markdown doesn't appear when listing posts in a blog?
I'm building a blog using Django and I just integrated markdown. How do I make sure that the truncated part of the body of a post (which is telling a little of what you'll see when that particular post is opened) doesn't display markdown? I created a template filter markdown: from django.utils.safestring import mark_safe from django import template import markdown register = template.Library() @register.filter(name='markdown') def markdown_format(text): return mark_safe(markdown.markdown(text)) Here's the usage in the post_list.html template {% extends "base.html" %} {% load blog_tags static disqus_tags %} {% disqus_dev %} {% block content %} <div class="jumbotron"> <h1 class="heading-font">Shelter At Your Crossroads</h1> <p class="lead">...some random ass text that could serve as motto or something</p> </div> <div class="container"> <div class="row"> <div class="col-lg-8"> {% if tag %} <h2 class="mb-4">Posts tagged with "{{ tag.name }}"</h2> {% endif %} {% for post in posts %} <div class="card mb-5"> <img class="card-img-top img-fluid" src="{{ post.image.url }}" alt="{{ post.title }}"> <div class="card-body"> <h2 class="card-title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h2> <p class="card-text">{{ post.body|markdown|truncatewords_html:50 }}</p> <a href="{{ post.get_absolute_url }}" class="btn btn-primary"><i class="fa fa-book" aria-hidden="true"></i>&nbsp;Read More </a> <a href="{% url 'post_share' post.id %}" class="btn btn-outline-secondary"><i class="fa fa-share-alt" aria-hidden="true"></i>&nbsp;Share Post</a> <div class="float-right"> <i class="fa fa-tags"></i> {% for tag in post.tags.all %} <a href="{% url … -
Django form doesn't show available values
I'm quite new to Django... So, I have a model. Notice the two foreign key fields (DeviceProfile model actually has data, but MISMStateSnapshot does not): class MISMWorkflow(models.Model): createdAt = models.DateTimeField(default=timezone.now) currentSnapshot = models.ForeignKey('MISMStateSnapshot', null=True, blank=True, on_delete=models.SET_NULL) device = models.ForeignKey(DeviceProfile, null=True, blank=True, on_delete=models.SET_NULL, related_name='workflows') def get_absolute_url(self): return reverse('{}:workflow_detail'.format(VIEW_NAMESPACE), args=(self.pk,)) And a CreateView: class WorkflowCreateView(generic.CreateView): model = MISMWorkflow fields = '__all__' template_name = 'mism_web/workflow_create_form.html' def form_valid(self, form): form.instance.device = DeviceProfile.objects.get(pk=self.kwargs.get('device_id')) form.instance.createdAt = timezone.now() return super(WorkflowCreateView, self).form_valid(form) And the template: {% extends 'mism_web/base.html' %} {% load material_form %} {% block content %} <form action="" method="POST">{% csrf_token %} <!--{{ form.as_p }}--> {% form form=form %}{% endform %} <input type="submit" name="_submit" class="btn" value="Save" /> </form> {% endblock %} urls: url(r'^workflow/workflow_create/$', workflow.WorkflowCreateView.as_view(), name='workflow_create_new'), This is what I see when I go to create page: There are couple of things wrong with this: I don't see the calendar/clock widget for the DateTimeField (createdAt) that I expected to see here. There's no selection input for either currentSnapshot or device fields (Even though there are devices in the DB) This is not because I am using the django-material plugin. I tested without it and I still get the same "empty" form. What's the cause of this and how to … -
Django how to define kwargs in a url pattern
url(r'^employee/create/(?P<employee_type>[\w-]+)$', staff_member_required(EmployeeCreateView.as_view()), name='employee-create'), I am using the above url config for following url <a href="{% url "myapp_app:employee-create" employee_type=product_eng %}" class="button is-light is-outlined">Create Product Engineer</a> <a href="{% url "myapp_app:employee-create" employee_type=product_dev %}" class="button is-light is-outlined">Create Product Developer</a> But this gives me an error saying matching reverse url is not found. How may I fix this issue -
Django, execute bash command dont work when running with Gunicorn
Im try to execute a bash command to manipulate files and directory, when run with django server execute good, but when running with gunicorn dont execute command, dont show any errors only dont execute. subprocess.call("mkdir testsuper", shell=True) also im try: os.system("command") -
django how to replace the logo title of 'django administrator'
my purpose is remove the the title of "Django administration" with yellow color in every admin page like following screen, please help. thanks.