Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
React Native - display styled text from Django RichTextUploadingField
on my mobile app I would like to display styled text from my database. Im using Django and CKEditor to create styled description. description = RichTextUploadingField(blank=True, config_name='special') Now in my react native app let's say I display this description: <Text>{description}</Text>. Unfortunately this text is not styled. Is there any simple library or method which allows to display this text in proper way? I tried libraries like react-native-ckeditor, but it wasn't working -
How to handle migrations in Django project in production (Digital Ocean App Platform)?
I have been using the app platform for almost 2 months. Yesterday, I made some changes in database tables (models) in my Django projects. I pushed those changes to Github and my app successfully redeployed. But When I open the site, I got “ProgrammingError” that some field that I created new in the existing table does not exist. So, I opened the console in App Platform and applied migrations but nothing is changed. I am still facing the error. Exception Type: ProgrammingError Exception Value: column productssubcategory.description does not exist LINE 1: …subcategory".“id”, “productssubcategory”.“name”, “products_… -
Django: trigger function in views.py from Javascript
I want to trigger a function that downloads a file from my "views.py", the trigger is in a "javascript" function: ---BROWSER (JAVASCRIPT)--->ONCLICK--->DOWNLOAD A FILE (DJANGO STATIC FILE) I have managed to call my django views functions from javascript using AJAX before, but it was always for getting HTTPRESPONSE,nothing involved downloading files. Also my view function downloads with no problems. But the problem is the JAVASCRIPT wrapper: <div id="smart-button-container"> <div style="text-align: center;"> <div id="paypal-button-container"></div> </div> </div> <script src="https://www.paypal.com/sdk/js?client-id=sb&currency=xxx" data-sdk-integration-source="button-factory"></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: 'pill', color: 'gold', layout: 'horizontal', label: 'xxx', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"xxxx{"currency_code":"xxx","value":xxx}}] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { alert('Transaction completed by ' + details.payer.name.given_name + '!'); }); }, onError: function(err) { console.log(err); } }).render('#paypal-button-container'); } initPayPalButton(); </script> I would like to know the answer to this problem. -
How to send Petitions Multi Thread Python / Django
I'm using Django and I need to send many requests, there is any way to send it on multi-thread? This is my code. def send_ws_info(serializer, id): url = f'{settings.WS_URL}/notify/{id}' token, created = Token.objects.get_or_create(user__id=id) headers = {'Authorization': f'Token {token.key}'} requests.post(url=url, json=serializer, headers=headers) -
How to code 'Dynamic' generic based view with Django?
I've develop a first eCRF app (project 1) using Django and now I want to make it more "generic" because most of the code is duplicated I've to make views, forms and templates generic based on available models I've read some post (Is it bad to dynamically create Django views?) with urls config and as_view() override parameters but I need to override get_context_data() and get_form_kwargs() methods so I think I can't use urls config all my views looks like below: InclusionCreate, InclusionUpdate, VisiteCreate, VisiteUpdate, etc... How can I acheive this? views.py @method_decorator(login_required, name='dispatch') class InclusionCreate(SuccessMessageMixin, CreateView): model = Inclusion form_class = InclusionForm template_name = "ecrf/inclusion_form.html" success_message = "La fiche Inclusion a été créée." def get_success_url(self): return reverse('ecrf:patient', args=[self.kwargs['pk']]) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["form_name"] = 'inclusion' return context def get_form_kwargs(self): kwargs = super(InclusionCreate, self).get_form_kwargs() kwargs['patient'] = Patient.objects.get(ide = self.kwargs['pk']) kwargs['user'] = self.request.user return kwargs @method_decorator(login_required, name='dispatch') class InclusionUpdate(SuccessMessageMixin, UpdateView): model = Inclusion form_class = InclusionForm template_name = "ecrf/inclusion_form.html" # nom template à utiliser avec CBV : [nom_model]_form.html success_message = "La fiche Inclusion a été modifiée." def get_success_url(self): return reverse('ecrf:patient', args=[Patient.objects.get(pat = Inclusion.objects.filter(ide = self.kwargs['pk']).first().pat.pat).ide]) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) patient = self.request.session.get('patient') context["form_name"] = 'inclusion' context["ide"] = self.kwargs['pk'] … -
Accessing Statics Files in Django
I am having a structure of Django Project as: │ db.sqlite3 │ manage.py │ ├───static │ │ 1.jpg │ │ bg1.jpg │ │ │ └───css │ login.css │ ├───templates │ home.html │ login.html │ register.html │ ├───User │ │ admin.py │ │ apps.py │ │ models.py │ │ tests.py │ │ urls.py │ │ views.py │ │ __init__.py │ │ │ ├───migrations │ │ │ __init__.py │ │ │ │ │ └───__pycache__ │ │ __init__.cpython-38.pyc │ │ │ └───__pycache__ │ admin.cpython-38.pyc │ apps.cpython-38.pyc │ models.cpython-38.pyc │ urls.cpython-38.pyc │ views.cpython-38.pyc │ __init__.cpython-38.pyc │ └───Website │ asgi.py │ settings.py │ urls.py │ wsgi.py │ __init__.py │ └───__pycache__ settings.cpython-38.pyc urls.cpython-38.pyc wsgi.cpython-38.pyc __init__.cpython-38.pyc Settings.py """ from pathlib import Path import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'django-insecure-c*3$w_63@$^8g&_fn%r=-23n^e@nrmxzxt7eh*owsz^mlrk5dr' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'User' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = … -
How do I find out the last object in a sliced queryset list at django?
How do I find out the last object in a sliced queryset list at django? Even if I use last() and first() in the queryset list, the following error occurs. Cannot reverse a query once a slice has been taken. I created a queryset list by putting the condition as below. comment = Comment.objects.filter(is_deleted=False,parent=None).order_by('-created_at')[:10] and here is comment <QuerySet [<Comments: Comments object (149)>, <Comments: Comments object (148)>, <Comments: Comments object (147)>, <Comments: Comments object (146)>, <Comments: Comments object (145)>, <Comments: Comments object (144)>, <Comments: Comments object (143)>, <Comments: Comments object (142)>, <Comments: Comments object (141)>, <Comments: Comments object (140)>]> i want to get <Comments: Comments object (140)> How do I find out the last object in a sliced queryset list at django? -
BoundField' object has no attribute 'replace
I am trying to make a filter that when the user mention users, I try to open this accounts that have @ For Example, if there are @Users this mention convert to link like Twitter. My Filter That raise this error 'BoundField' object has no attribute 'replace' import re from django import template register = template.Library() def open_account(text): try: results = re.findall("(^|[^@\w])@(\w{1,20})") for result in results: result = result[1] except: pass return text.replace(result, '<a target="_blank" style="color: blue;"') url_target_blank = register.filter(open_account, is_safe = True) -
Django - (Tagulous) AttributeError: type object 'Model' has no attribute '_meta'
I'm trying to learn as much as possible myself with regards to discovering solutions to my challenges, but this error has got me stuck a little! (I am currently trying to implement Tagulous in to my app) At the point of running a migration, I am receiving the following error: AttributeError: type object 'Model' has no attribute '_meta' Here is the code I have implemented so far whilst referencing the Tagulous tutorials Models.py from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from PIL import Image import tagulous.models class Post(models.Model): content = models.TextField(max_length=1000) date_posted = models.DateTimeField(default=timezone.now) image = models.ImageField(default='default.png', upload_to='media') author = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return self.content[:5] img = Image.open(self.image.path) if img.height > 300 or img.width > 300: output_size = (300, 300) img.thumbnail(output_size) img.save(self.image.path) @property def number_of_comments(self): return Comment.objects.filter(post_connected=self).count() class Comment(models.Model): content = models.TextField(max_length=150) date_posted = models.DateTimeField(default=timezone.now) author = models.ForeignKey(User, on_delete=models.CASCADE) post_connected = models.ForeignKey(Post, on_delete=models.CASCADE) class Preference(models.Model): user= models.ForeignKey(User, on_delete=models.CASCADE) post= models.ForeignKey(Post, on_delete=models.CASCADE) value= models.IntegerField() date= models.DateTimeField(auto_now= True) def __str__(self): return str(self.user) + ':' + str(self.post) +':' + str(self.value) class Meta: unique_together = ("user", "post", "value") class Skill(tagulous.models.TagTreeModel): class TagMeta: initial = [ "test1", "test2", "test3", ] space_delimiter = False autocomplete_view = … -
ValueError at /checkout/ The QuerySet value for an exact lookup must be limited to one result using slicing
ValueError at /checkout/ The QuerySet value for an exact lookup must be limited to one result using slicing. Request Method: GET Request URL: http://127.0.0.1:8000/checkout/ Django Version: 3.2.3 Exception Type: ValueError Exception Value: The QuerySet value for an exact lookup must be limited to one result using slicing. Error Screenshot Error This line is causing issue APP views.py Checkout @login_required def checkout(request): if request.user.is_authenticated: name = request.user print(name) order=Orders(customerID=name) order.save() cart = Cart(request) for items in cart: print(items) OrderDetails(orderID=order,productID=items['product'],quantity=items['quantity'],price=items['total_price']).save() order = Orders.objects.filter(customerID=name) OrderDetail = OrderDetails.objects.filter(orderID=order) customerDetails = Customer.objects.filter(user=name).count() print(customerDetails) return render(request, 'app/checkout.html',{'orders':OrderDetail,'address':customerDetails}) CheckOut Template {% extends 'app/base.html' %} {% load static %} {% block title %}Buy Now{% endblock title %} {% block main-content %} <div class="container"> <div class="row mt-5"> <div class="col-sm-6"> <h4>Order Summary</h4> <hr> {% for order in orders %} <div class="card mb-2"> <div class="card-body"> <h5>{{order.name}}</h5> <p>Quantity: {{order.quantity}}</p> <p class="fw-bold">Price: {{order.price}}</p> </div> </div> {% endfor %} <small>Term and Condition: Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia, ullam saepe! Iure optio repellat dolor velit, minus rem. Facilis cumque neque numquam laboriosam, accusantium adipisci nisi nihil in et quis?</small> </div> <div class="col-sm-4 offset-sm-1"> <h4>Shipping Address</h4> <hr> {% for ad in address %} <div class="card"> <div class="card-body"> <h5>{{ad.name}}</h5> <p>{{ad.address}}</p> <p>{{ad.phone}}</p> </div> {% … -
UnidentifiedImageError at /login/ cannot identify image file 'C:\\Users\\sudha\\django_project\\media\\default.jpg'
views.py/blog: from django.shortcuts import render, get_object_or_404 from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.contrib.auth.models import User from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView ) from .models import Post def home(request): context = { 'posts': Post.objects.all() } return render(request, 'blog/home.html', context) class PostListView(ListView): model = Post template_name = 'blog/home.html' # <app>/<model>_<viewtype>.html context_object_name = 'posts' ordering = ['-date_posted'] class UserPostListView(ListView): model = Post template_name = 'blog/user_posts.html' # <app>/<model>_<viewtype>.html context_object_name = 'posts' def get_queryset(self): user = get_object_or_404(User, username=self.kwargs.get('username')) return Post.objects.filter(author=user).order_by('-date_posted') class PostDetailView(DetailView): model = Post class PostCreateView(LoginRequiredMixin, CreateView): model = Post fields = ['Your_Name','city','phone','cost'] def form_valid(self, form): form.instance.author = self.request.user return super().form_valid(form) class PostUpdateView(LoginRequiredMixin, UserPassesTestMixin, UpdateView): model = Post fields = ['title','content','phone'] def form_valid(self, form): form.instance.author = self.request.user return super().form_valid(form) def test_func(self): post = self.get_object() if self.request.user == post.author: return True return False class PostDeleteView(LoginRequiredMixin, UserPassesTestMixin, DeleteView): model = Post success_url = '/' def test_func(self): post = self.get_object() if self.request.user == post.author: return True return False def about(request): return render(request, 'blog/about.html', {'title': 'About'}) views.py/users: from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) if form.is_valid(): username = form.cleaned_data.get('username') form.save() messages.success(request, f'Your account has … -
How to Sell digital Keys using Django
I'm new to web development and have decided to use Django to work on my digital e-commerce website. I'm mainly going to be selling digital keys. I need it such that. I can add the keys for the product in the admin section. when a product is purchased. I single line(one key) has to be sent via email to the customer. But I haven't been able to find any resources relating to this. Can anyone help me with this? point me in the right direction and Ill carry on from there. Thank you very much. -
Display PostgreSQL tables contents in Django
I'm looking to display the contents of a postgres table in Django. Clearly I'm doing something wrong but can not figure out why the data won't show. Below is what I have so far, the tables headers show but there is no data or any error messages. Checked the table in pgAdmin and there is plenty of data there. # models.py from django.db import models from datetime import datetime # Create your models here. class SensorData(models.Model): device_name = models.TextField() sensor_type = models.TextField() sensor_data = models.SmallIntegerField() sensor_date = models.DateTimeField() def __str__(self): return self.device_name # views.py from django.shortcuts import render from django.http import HttpResponse from django.views.generic import ListView from .models import SensorData # Create your views here. class ErrorView(ListView): model = SensorData template_name = 'errors.html' # urls.py from django.urls import path from .views import ErrorView urlpatterns = [ path('errors/', ErrorView.as_view(), name='errors'), path('', ErrorView.as_view(), name='errors'), ] # errors.html {% extends 'layout.html' %} {%block content %} <section class ='infoContainer'> <div id = 'sensorInfo'> <h2> Error Information </h2> <table id = "deviceTable"> <tr> <th><strong>Device </strong></th> <th><strong>Sensor Type </strong></th> <th><strong>Date</strong></th> <th><strong>Information</strong></th> </tr> {% for error in object_list %} <tr> <td> {{error.device_name}} </td> <td> {{error.sensor_type}} </td> <td> {{error.sensor_date}} </td> <td> {{error.sensor_data}} </td> </tr> {% endfor %} </table> … -
business logic in admin panel
I'm new with python and I create two models (Shoes and Order) I can add record by admin panel but I want each time that I add order record it's check weather the shoes are available or not! where should I put logic? models: -
DRF non-writable nested serializer related field
I'm using Django 3.2 and DRF I have a serializer with nested serializer fields like class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = [ 'id', 'title', ] class QuestionSerializer(serializers.ModelSerializer): category = CategorySerializer() class Meta: model = Question fields = [ 'category', 'title', 'description' ] Where in response the data should be returned like { "category": { "id": 4, "title": "General Knowledge", "created": "2021-05-23T07:12:14.749571Z", "modified": "2021-05-23T07:12:14.749639Z" }, "title": "Where is Delhi?", "description": "" } This is fine, but with the POST method, I don't want to create nested data for the Category because these records are only created from the admin panel. But these fields are required to create the Question record. When passing the id of the category in the payload, it still says the category field is required. How can I assign a related field using the id of the object instead of passing all data to create a nested object? -
All usernames are indicated by the username phrase
admin dashboard: In addition to the admin part, the template is displayed in the same way. Ever since I customized the accounts section, in all the sections where I have used the username, there is a problem that the usernames are displayed without that name and only by displaying the phrase username. settings.py: AUTH_USER_MODEL = 'accounts.CustomUser' models.py(accounts): class MyAccountManager(BaseUserManager): def create_user(self, email, username, password=None): if not email: raise ValueError("Users must have an email address.") if not username: raise ValueError("Users must have a username.") user = self.model( email=self.normalize_email(email), username=username ) user.set_password(password) user.save(using=self._db) return user def create_superuser(self, email, username, password): user = self.create_user( email=self.normalize_email(email), username=username, password=password, ) user.is_admin = True user.is_staff = True user.is_superuser = True user.save(using=self._db) return user def get_profile_image_filepath(self, filepath): return f'images/accounts/profiles/{self.pk}/{"profile.png"}' class CustomUser(AbstractBaseUser, PermissionsMixin): class Meta: permissions = [ ('all', 'all of the permissions') ] first_name = models.CharField(max_length=30, null=True, blank=True) last_name = models.CharField(max_length=30, null=True, blank=True) email = models.EmailField(verbose_name='email', max_length=100, unique=True) username = models.CharField(max_length=55, unique=True) date_joined = models.DateTimeField(verbose_name='date joined', auto_now_add=True) last_login = models.DateTimeField(verbose_name='last login', auto_now=True) is_admin = models.BooleanField(default=False) is_active = models.BooleanField(default=True) is_staff = models.BooleanField(default=False) is_superuser = models.BooleanField(default=False) profile_image = models.ImageField(null=True, blank=True, upload_to=get_profile_image_filepath, default='images/accounts/profiles/default_image.jpg') objects = MyAccountManager() USERNAME_FIELD = 'username' REQUIRED_FIELDS = ['email'] def __str__(self): return self.USERNAME_FIELD def get_profile_image_filename(self): return str(self.profile_image)[str(self.profile_image).index(f'images/accounts/profiles/{self.pk}/'):] … -
stop dynamic add field to form when form is invalid
Followed below code to add and display etra fields to forms dynamically with "Add another" button. Code is working but problem is on "Add another" button click (when form in invalid) additional form fields are added to form but not displayed. Want to make sure when form is invalid extra fields are not added to form. Forms class MyForm(forms.Form): original_field = forms.CharField() extra_field_count = forms.CharField(widget=forms.HiddenInput()) def __init__(self, *args, **kwargs): extra_fields = kwargs.pop('extra', 0) super(MyForm, self).__init__(*args, **kwargs) self.fields['extra_field_count'].initial = extra_fields for index in range(int(extra_fields)): # generate extra fields in the number specified via extra_fields self.fields['extra_field_{index}'.format(index=index)] = \ forms.CharField() View def myview(request): if request.method == 'POST': form = MyForm(request.POST, extra=request.POST.get('extra_field_count')) if form.is_valid(): print "valid!" else: form = MyForm() return render(request, "template", { 'form': form }) HTML <form> <div id="forms"> {{ form.as_p }} </div> <button id="add-another">add another</button> <input type="submit" /> </form> JS <script> let form_count = Number($("[name=extra_field_count]").val()); // get extra form count so we know what index to use for the next item. $("#add-another").click(function() { form_count ++; let element = $('<input type="text"/>'); element.attr('name', 'extra_field_' + form_count); $("#forms").append(element); // build element and append it to our forms container $("[name=extra_field_count]").val(form_count); // increment form count so our view knows to populate // that many fields for … -
Sending emails to an email with an attachment
In the django function, I fill in a docx document template doc = DocxTemplate('template.docx') dates = date prices = price tbl_contents = [{'expirationdate': expirationdate, 'price': price} for expirationdate, price in zip(dates, prices)] context = { 'tbl_contents': tbl_contents, 'finalprice': sum(prices), 'startdate': startdate, 'enddate': enddate } doc.render(context) doc.save("static.docx") How do I get a file static.docx and send it to email? I sent ordinary emails via send_mail but how do I send emails with an attachment? -
How much python is needed for web development
How much python is needed for learning web development? Is it necessary to solve very complex coding questions in python before moving towards Flask/Django? -
VueJS + Django Rest Framework in dockers
I have a VueJS front end and a Django Rest Framework Backend which are independant (Django does not serve my VueJS app) In local they work very well together but after using a docker-compose to deploy them on the server they don't want to communicate anymore. I can see my frontend but the axios requests get a TimeOut. How it's made in my docker compose: version: '3' networks: intern: external: false extern: external: true services: backend: image: #from_registry container_name: Backend env_file: - ../.env depends_on: - db networks: - intern volumes: - statics:/app/static_assets/ - medias:/app/media/ expose: - "8000" db: image: "postgres:latest" container_name: Db environment: POSTGRES_PASSWORD: **** networks: - intern volumes: - pgdb:/var/lib/postgresql/data frontend: image: from_registry container_name: Frontend volumes: - statics:/home/app/web/staticfiles - medias:/home/app/web/mediafiles env_file: - ../.env.local depends_on: - backend networks: - intern - extern labels: - traefik.http.routers.site.rule=Host(`dev.x-fantasy.com`) - traefik.http.routers.site.tls=true - traefik.http.routers.site.tls.certresolver=lets-encrypt - traefik.port=80 volumes: pgdb: statics: medias: In my AxiosConfiguration I put: baseURL="http://backend:8000" And my front try to access on this URL but get a timeout error. In the console I have an error xhr.js:177 POST https://backend:8000/api/v1/token/login net::ERR_TIMED_OUT It seems that there is a https in place of the http. Can it come from here? Any idea how to make them communicate? … -
Getting AttribueError by SlugRelatedField despite the object being saved
I am creating an API to save class teachers. Now all the fields in the ClassTeacher model are foreign fields so I am using a SlugRelatedField in the serializer. It looks like SlugRelatedField does not support attribute lookup like this "user__username" and raises attribute error HOWEVER the object is still being saved. models.py class ClassTeacher(models.Model): teacher = models.ForeignKey(Teacher, on_delete=models.CASCADE) class_name = models.ForeignKey(Classes, on_delete=models.CASCADE) school_id = models.ForeignKey(School, on_delete=models.CASCADE) serializers.py class ClassTeacherSerializer(ModelSerializer): teacher = SlugRelatedField(slug_field='user__username', queryset=Teacher.objects.all()) <---- this is causing the error class_name = SlugRelatedField(slug_field='class_name', queryset=Classes.objects.all()) school_id = SlugRelatedField(slug_field='school_id__username', queryset=School.objects.all()) <---- and I am assuming that this will too class Meta: model = ClassTeacher fields = '__all__' I tried adding a @property in the Teacher model to retrieve the username and use the property in the slug_field but that did not work too. How can I save the object without getting the error? -
Получение организатора встречи вк VK API, Social_django
Использую django+vk api. Хочу получить организатора встречи вк для дальнейшей рассылки инвайтов. В django авторизуюсь через social_auth_vk, тяну токен и с помощью него авторизуюсь в api. Но для получения организатора встречи, я так понимаю, нужно получить настройки api.groups.getSettings(group_id=id) Но мне выпадает ошибка о том, что у меня нет прав на этот метод, хотя права на groups запрошены. SOCIAL_AUTH_VK_OAUTH2_SCOPE = ['email', 'groups', 'ads'] Я прочитал, что авторизация social_auth не дает токена с полным доступом, а режет его. Подскажите, как решить проблему. -
In django How can i get unchecked checkbox values.currently it returns only checked value
models.py taken = models.BooleanField(default=False) forms.py taken = forms.CheckboxInput() in html this field comes in a loop so when i try to fetch this in views taken = request.POST.getlist('taken') it only returns checked fields as 'on' here i need both 'on' and 'off'. -
erorr manage.py dumpdata > db.json
I have erorr when user manage.py dumpdata > db.json CommandError: Unable to serialize database: 'charmap' codec can't encode character '\u062f' in position 17: character maps to <undefined> -
Unversion files in my django project not getting commited or pushed to Github from Pycharm
I am trying to push my project to Github . But for some reason the unversioned files are not getting commited in pycharm vcs and hence not getting pushed to github The comment button keeps on fading out whenever I check the unversion file option and try to commit them. What is the issue exactly ?