Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
offline authentication using cookies, django
I am building offline progressive web application for that I need Authentication in offline for existing user. I am trying to store user authentication values like username and password in browser using cookies. but how to retrieve username and password form cookies and check authentication in offline using service worker. thanks in advance -
Where to store images during Django deployment?
I've deployed my django project onto my Digital Ocean server. However I'm not sure how to deal with image assets in my html, and also image assets generated from users. So an example of assets in my html would be for example, the logo of my website. An example of user-generated images would be the user uploaded a post with an image. In development I could just get my html images from static/image/image.png however this method doesn't seem viable in production. For user-generated images it would go in media. How do these 2 differ when going into production? For static images in my HTML the storage would be quite low so could this just live on the server? However I don't think it's possible to have images in a git repo. -
How to integration CCAvenue with python/Django
I am getting 'Error Code: 10002 Merchant Authentication failed' error on ccavenue site when redirect form my site. IP is verified on ccavenue. My another php site is working on this IP with ccavenue. encryption = encrypt(merchant_data, workingKey) return HttpResponse("""<html><head><title>Payment.</title></head><body><form method="post" name="redirect" action="%s"> <input type="hidden" name="encRequest" value="%s"><input type="hidden" name="Merchant_Id" value="%s"><input type="hidden" name="access_code" id="access_code" value="%s"></form> </body><script language='javascript'>document.redirect.submit();</script> </html> """ % (cc_url, encryption, p_merchant_id, accessCode) -
i need to display loading image when user clicks on submit button using django
I need to display loading image when user clicks on submit button using django framework. As i have a form where user enters integer and waits for response. As getting response might take few minutes till that time loading image as to be displayed and once it get response it should disappear. below is my code: urls.py urlpatterns = patterns('', url(r'^burt/$',burt_id.as_view(),name='burt_id'), ) views.py class burt_id(TemplateView): template_name = 'burt_id.html' def get(self, request): form = Homeform2() test='Please wait page is loading' return render(request,self.template_name, {'form':form,'test':test}) def post(self, request): form = Homeform2(request.POST) d={} if form.is_valid(): text = form.cleaned_data['Burt_id'] <""" few process inside function"" > args = {'form':form,'out_dict':out_dict} return render(request, self.template_name,args) burt_id.html {%load static %} <html> <head> <link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}"> </head> <body> <div class="block6" style="margin-left:250px;"> <table class="'table table-hover" style="width:53.5%;"> <tr> <td style="text-align:center;"> Burt ID</td> <td style="text-align:center;"><form method="post"> {% csrf_token %} {{ form.as_p }} <button type="submit" class="button button2" style="margin-left:80px;">Submit</button> </form> </td> </tr> </table> <div id="loading1"><h3">please wait its loading</h3></div> <div id="content"> <table class="table table-hover" style="width:80%;" > {% if not out_dict %} <tr> <td>No Change Number </td> </tr> {% else %} <tr style="color:white;"> <th>Test Case</th> <th>File Name</th> <th>Coverage</th> </tr> {% for key, value in out_dict.items %} <tr> <td>{{ key }}</td> <td>{{ value.0 }}</td> </tr> … -
I am using Django 1.8 after installing django redux 2.02 it started showing error Django.urls not found before installing redux it was working fine
ModuleNotFoundError at / No module named 'django.urls' enter image description here -
Integration of cloudant with django
I am new to cloudantdb and django. Is there any way to integrate cloudantdb with danjgo framework. Is it possible to connect cloudant with django? -
Savoir JSON-RPC wrapper: JSONDecodeError django
I tried using Savoir Json-RPC wrapper in my django project. After submitting the form it to request API data it sends: JSONDecodeError at /account/login/ Expecting value: line 1 column 1 (char 0) Request Method: POST Request URL: http://localhost:8000/account/login/ Django Version: 1.11.3 Exception Type: JSONDecodeError Exception Value: Expecting value: line 1 column 1 (char 0) Exception Location: c:\users\dell\appdata\local\programs\python\python36\Lib\json\decoder.py in raw_decode, line 357 Python Executable: E:\savoir\Scripts\python.exe Python Version: 3.6.4 Python Path: ['E:\\savoir\\src', 'E:\\savoir\\Scripts\\python36.zip', 'E:\\savoir\\DLLs', 'E:\\savoir\\lib', 'E:\\savoir\\Scripts', 'c:\\users\\dell\\appdata\\local\\programs\\python\\python36\\Lib', 'c:\\users\\dell\\appdata\\local\\programs\\python\\python36\\DLLs', 'E:\\savoir', 'E:\\savoir\\lib\\site-packages'] I cannot find any solution of it and I don't know where did I do wrong. In views.py: class Signin(View): template_name = 'login.html' def get(self, request): form = LoginForm() return render(request, self.template_name, {'form': form}) def post(self, request): form = LoginForm(request.POST) if form.is_valid(): multi = get_object_or_404(RegisterMulti, rpc_user=form.cleaned_data['user']) if form.cleaned_data['passwd1'] != multi.rpc_passwd or form.cleaned_data['host'] != multi.rpc_host or form.cleaned_data['port'] != multi.rpc_port or form.cleaned_data['chname'] != multi.chain_name: messages.error(request, "Error") return render(request, self.template_name, {'form': form}) rpcuser = multi.rpc_user print(rpcuser) rpcpasswd = multi.rpc_passwd print(rpcpasswd) rpchost = multi.rpc_host print(rpchost) rpcport = multi.rpc_port print(rpcport) chainname = multi.chain_name print(chainname) api = Savoir(rpcuser, rpcpasswd, rpchost, rpcport, chainname) print(api.getinfo())` In forms.py: class LoginForm(forms.Form): user = forms.CharField(max_length=32) passwd1 = forms.CharField(max_length=32) host = forms.CharField(max_length=300) port = forms.CharField(max_length=10) chname = forms.CharField(max_length=32) In urls.py: urlpatterns = [ url(r'^login/', … -
Get the correct port number from LiveServerTestCase in Django 2.0
When trying to test the admin login using the following code, I found the self.live_server_url returns something like http://localhost:39346, where the port number is different on each running. from django.test import LiveServerTestCase from selenium import webdriver class AdminLoginTests(LiveServerTestCase): def setUp(self): self.selenium = webdriver.Firefox() super(QuestionCreateTests, self).setUp() def tearDown(self): self.selenium.quit() super(QuestionCreateTests, self).tearDown() def test_admin_login(self): # ... print('url: %s' %self.live_server_url) How do I get the correct port number 8000 of the running server? Suppose I run the server through python manage.py runserver 0.0.0.0:8000. Thanks! -
Django, Gunicorn, Nginx, Postgres, Digitial Ocean Server Error 500 on Image Upload
I am developing a website/blog using Django and am in the middle of figuring out the proper setup/settings. I am running Ubuntu Server 16.04 in a virtual machine for testing. I am using what seems to be a common setup with Gunicorn and Nginx as well as PostgreSQL for the database and hosting the static and media files on Digital Ocean Spaces. I intend to host the site on Digital Ocean as well. I have pieced together things from a few different guides here, here, here, and here. I also use Django-Imagekit for handling images (url, resizing, etc) and manage everything in Django Admin. The problem I am facing is that when I upload an image (either directly to an image form or via a post form) and save the object I end up getting a Server Error (500). If I refresh the page it then works fine. This also happens on the site itself (i.e. go to home page, server error, refresh, no error). There are also absolutely no errors in my Gunicorn and Nginx logs. File Structure: site ├── project │ ├── gallery │ │ ├── static │ │ │ ├── gallery │ │ │ │ ├── css … -
How to modify redirect in django middleware
I have a requirement to convert http to https if the redirect happens in django. So I'd like to write a middleware to handle that. I have put the middleware in the top of the middleware list, hope that's correct.I have used the following sample code. But when redirect happens, the url is not the full url, but relative url. So I don't know how to overwrite the url or schema(http or https). I have thought I could replace the http to https in the response, but the content of the response is also empty. So what should I do? class RedirectFilter(object): def process_response(self, request,response): print 1111111111111 print response.status_code print request.path print response.__class__.__name__ if isinstance(response,HttpResponseRedirectBase): print response.url print response.content return response -
null value in column "content_type_id" violates not-null constraint
I'm having difficulty in using django's generic relation and forms. I'm using crispyforms to render my the html. Here's the error that i get. Not sure why it's looking for content_type_id every time i save a record. I tried creating new a new company record using the admin panel and it works. This error only comes out when I use crispy form null value in column "content_type_id" violates not-null constraint Below is my code. Forms.py ` class CompanyFormHelper(FormHelper): form_tag = False render_required_fields = True disable_csrf = True render_required_fields = False layout = Layout( Fieldset( _('Company'), Div(InlineField('name'), css_class='col-sm-12'), Div(InlineField('email'), css_class='col-sm-12'), Div(InlineField('phone'), css_class='col-xs-6'), Div(InlineField('type'), css_class='col-xs-6'), Div(InlineField('is_partner'), css_class='col-xs-6'), Div(InlineField('is_company'), css_class='col-xs-6'), Row( Formset('company_location_form', 'company_location_form_helper'), ), Submit('submit','Submit'), ), ) class CompanyForm(ModelFormBase): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.helper = CompanyFormHelper() class Meta: model = Company fields = ('name','email','phone','type','is_partner','is_company') widgets = {} class CompanyLocationFormsHelper(FormHelper): form_tag = False disable_csrf = True layout = Layout( Fieldset( _('Company Address'), Div(InlineField('line_first'), css_class='col-sm-12'), Div(InlineField('line_second'), css_class='col-sm-12'), Div(InlineField('city'), css_class='col-xs-6'), Div(InlineField('province'), css_class='col-xs-6'), Div(InlineField('postal_code'), css_class='col-xs-6'), Div(InlineField('country'), css_class='col-xs-6'), ), ) # template = 'is_portal/core/crispy_form/table_inline_formset.html' render_required_fields = True class CompanyLocationForm(ModelFormBase): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.helper = CompanyLocationFormsHelper() class Meta: model = Address fields = ('line_first','line_second','city','province','postal_code','country') widgets = { 'line_first': forms.TextInput(attrs={'required':'required'}), 'city': forms.TextInput(attrs={'required':'required'}), 'country': forms.Select(attrs={'class':'select required'}), } CompanyLocationFormset = … -
Django file-size chaos (in finder and compressed folder)
I went to zip up a Django project to send it when I noticed that the project was over 600 MB. I think the sqlite3 database file was over 450mb, so I went through some steps to reset it and deleted the profiler app that was generating all that data. However, when I inspect he root folder I still see around a ~400 mb file size for the whole project. Here is my finder output for ls -lha (which seems pretty ridiculous in itself?) App: drwxr-xr-x 14 funglr-dan staff 448B Feb 13 11:03 django_app What?? 448 bytes? Clearly not right. Inside the App: drwxr-xr-x 13 funglr-dan staff 416B Feb 13 11:04 .git -rw-r--r-- 1 funglr-dan staff 500B Feb 13 11:03 .gitignore drwxr-xr-x 3 funglr-dan staff 96B Jan 15 20:49 .vscode drwxr-xr-x 26 funglr-dan staff 832B Feb 7 16:30 bin -rw-r--r-- 1 funglr-dan staff 97B Jan 15 20:49 date-test.py drwxr-xr-x 3 funglr-dan staff 96B Feb 7 16:30 include drwxr-xr-x 3 funglr-dan staff 96B Jan 11 18:44 lib -rw-r--r-- 1 funglr-dan staff 60B Feb 13 10:26 pip-selfcheck.json drwxr-xr-x 3 funglr-dan staff 96B Jan 30 18:31 selenium drwxr-xr-x 9 funglr-dan staff 288B Feb 13 10:56 webapp Yet, when I inspect that very same … -
Loggin below WARNING level is not working in django
With this setting LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'root': { 'level': 'WARNING', 'handlers': ['sentry', 'console', 'file'], }, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(thread)d %(message)s' }, }, 'handlers': { 'sentry': { 'level': 'WARNING', # To capture more than ERROR, change to WARNING, INFO, etc. 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', 'tags': {'custom-tag': 'x'}, }, 'file': { 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': os.path.join(BASE_DIR, 'logs/web.log'), }, 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' }, }, 'loggers': { 'all': { 'handlers': ['console'], 'level': 'DEBUG', }, 'app': { 'handlers': ['file'], 'level': 'INFO', }, 'warnings': { 'handlers': ['sentry'], 'level': 'WARNING', }, } } I expect that All logs will appear in console Logs from INFO to CRIT will appear both in console and output file Logs from WARNING to CRIT to be streamed to sentry But in fact I have only WARNING-CRIT logs in all three destinations. Where I am wrong? -
Django: use TIME_ZONE='Asia/Seoul', USE_TZ=False but time stored in database is wrong?
This is my settings for time zone: TIME_ZONE = 'Asia/Seoul' USE_TZ = False The reason that I set USE_TZ as False is that since my program has a lot of codes comparing model's created DateTime field with other dates, so I want to apply my TIME_ZONE=Asia/Seoul in all fields of model so that make these comparison easier. Let say I created a model like below: (The time of Seoul is 2018-02-13 10:10:29, which is 2018-02-13 1:10:29 in UTC) >> s = Symbol.objects.get(code="123456", name="aa") >> s.created datetime.datetime(2018, 2, 13, 10, 10, 29, 771952) which shows Seoul time exactly. But when I checked it in database(PostgreSQL), of which timezone is set as KST (or ROK, Republic of Korea), created field shows like this: 2018-02-13 10:10:29.771952+09 which looks strange because it adds "+09" on the actual Korean created time! I want to know what's wrong with my setting or interpretation. Need your advices. Thanks -
Django Post request not receiving data
I've spent hours looking up this issue with no avail. I am having issue with post data from an html page I am sending {'username': 'username'} but when I do request.POST.get('username') it returns none, I alos tried {username, 'username'} def test_post(request): if request.method == 'POST': print(request.POST.get('username')) return HttpResponse("Good!") else: return HttpResponse("Bad.") Console Development Server None <<<< [12/Feb/2018 19:39:53] "POST /test_post HTTP/1.1" 200 5 (edited) I am sending the data as {'username': 'username'} That works correctly how come I am unable to get it to show up? This is the Javascript code that calls from the page: document.getElementById('submit').addEventListener('click', function(e) { e.preventDefault(); var username = document.getElementById("username").value; data = {gitusername: username}; console.log(data); var request = new XMLHttpRequest(); request.open('POST', '/getuser', true); request.setRequestHeader('Content-Type', 'x-www-form-urlencoded'); request.send(data); }); -
Django's generic CreateView leading to a 404
I'm reading the documentation on Django's generic editing views and trying to follow them with a simple example. I have a project my_project with an app my_app with the following structure: . ├── __init__.py ├── admin.py ├── apps.py ├── forms.py ├── models.py ├── templates │ └── my_app │ ├── author_form.html │ └── contact.html ├── tests.py ├── urls.py └── views.py The urls.py is from django.urls import path from .views import ContactView, AuthorCreate urlpatterns = [ path('create/', AuthorCreate.as_view()) ] and the project-level urls.py is from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('my_app/', include('my_app.urls')) ] The views.py is from django.views.generic.edit import FormView, CreateView from my_app.models import Author class AuthorCreate(CreateView): model = Author fields = ['name'] Note that I have not implemented the get_absolute_url method in the example, because it is unclear to me how the 'author-detail' named URL should be defined. The problem is, however, that after entering a name and pressing the "Create" button, I get a 404 error: Page not found (404) Request Method: GET Request URL: http://localhost:8000/my_app/create/None Using the URLconf defined in my_project.urls, Django tried these URL patterns, in this order: admin/ my_app/ contact/ [name='contact'] my_app/ create/ The current path, my_app/create/None, didn't match … -
With django cookie cutter, how to change to a the custom user model mid-project
I am trying to use Cookiecutter to help me to deploy a web app with Heroku and Amazon S3. This is an app that I developed locally without Cookiecutter so I am copy-pasting the files into the new project and debug step by step. The original app used the build-in Django User Model so I would like to switch to the Abstract User Model that comes with Cookiecutter. I started to create a new database for this project to start from scratch. Then I thought it would be as simple as replacing User by AUTH_USER_MODEL models.py from config.settings.base import AUTH_USER_MODEL class Category(models.Model): name = models.CharField(max_length=30) description = models.CharField(max_length=140,blank=True,null=True) date_created = models.DateField(default=timezone.now) date_updated = models.DateField(auto_now=True) created_by = models.ForeignKey(AUTH_USER_MODEL, related_name="categories") def __str__(self): return self.name I get this error when running manage.py migrate accounts.User.user_ptr: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out. HINT: Update the relation to point at 'settings.AUTH_USER_MODEL' In settings.py AUTH_USER_MODEL = 'users.User' Where I am missing something ? -
Catch all exceptions in django rest framework
I guess this is more of a code quality question but it does involve handling unhandled exceptions is Django rest framework. Deleting a protected record just return <h1>500 internal server error<h1> So I added the example custom exception handler. The first line returns a response that is none. response = exception_handler(exc, context) from rest_framework.views import exception_handler from rest_framework.response import Response from rest_framework import status def custom_exception_handler(exc, context): response = exception_handler(exc, context) if response is None: #DRF could not process the exception so we will treat it as a 500 and try to get the user as much info as possible. response = Response({'error': str(exc)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) return response So in this case I am treating it as a 500 because the DRF couldn't handle the exc. I guess my question is is this an appropriate way to handle it and does anyone have experience with this have a better solution? -
django Built-in template tags and filter Cut command not removing second space
My database stored phone numbers as "(123) 456-7890 " I need to remove all the spaces from a phone number so that I can make calls via Cisco phone. <td><a href="ciscotel:1{{contact.Phone|cut:" "}}" target="_self">{{ contact.Phone | cut:" "}} But django is displaying html as: (123)456-7890 I tried : {{contact.Phone|cut:"("|cut:")"|cut:"-"|cut:" "}} and {{contact.Phone|cut:"("|cut:" "|cut:"&nbsp;"}} The documentation makes it seem like one cut function should clear both spaces. Thanks -
Parsing Javascript values to Django views
I am new to Django and I am just trying to figure it out and I did posted it in official Django google group but no answer. I am working with Google Map API in my Django template for GeoLocation and I intend to populate DB table dynamically after extracting information from JavaScript in my Django template. Following is the code: var map, infoWindow; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 6 }); infoWindow = new google.maps.InfoWindow; // Try HTML5 geolocation. if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = { lat: position.coords.latitude, lng: position.coords.longitude }; infoWindow.setPosition(pos); infoWindow.setContent('Location found.'); infoWindow.open(map); map.setCenter(pos); }, function() { handleLocationError(true, infoWindow, map.getCenter()); }); } else { // Browser doesn't support Geolocation handleLocationError(false, infoWindow, map.getCenter()); } } function handleLocationError(browserHasGeolocation, infoWindow, pos) { infoWindow.setPosition(pos); infoWindow.setContent(browserHasGeolocation ? 'Error: The Geolocation service failed.' : 'Error: Your browser doesn\'t support geolocation.'); infoWindow.open(map); } I need to save longitude and latitude with GeoLocation Info about the location in human readable format in my model. My Model is class Address(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, models.CASCADE) latitude = models.CharField(max_length=10) longitude = models.CharField(max_length=10) address = models.CharField(max_length=100) ..... My form is: class UserAddressForm(forms.ModelForm): class Meta: model = Address fields = … -
In Django admin how can i hide or remove the Pencil, "+" and "x"?
I can hide all the options in the model base, but is not necessary, on the relation i can't do that i think that exist a simple form (not with css) to remove or hide it thanks **********These are********** -
Django-import-export get file name
I've been scouring the docs and internet for a couple days now trying to figure out how I can capture the imported filename from Django import export admin panel's import feature. Basically, I want to save this filename to ensure that future file uploads are not the same. the process being: 1. Someone imports a file picture of admin panel with import button 2. The filename is stored admin panel, import file section 3. If someone tries to upload same file again, error error in file import But I can't figure out how to get that filename from Django import export. Help is much appreciated. -
Django REST: Uploading and serializing multiple images
I have 2 models Task and TaskImage which is a collection of images belonging to Task object. What I want is to be able to add multiple images to my Task object, but I can only do it using 2 models. Currently, when I add images, it doesn't let me upload them and save new objects. settings.py MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' serializers.py class TaskImageSerializer(serializers.ModelSerializer): class Meta: model = TaskImage fields = ('image',) class TaskSerializer(serializers.HyperlinkedModelSerializer): user = serializers.ReadOnlyField(source='user.username') images = TaskImageSerializer(source='image_set', many=True, read_only=True) class Meta: model = Task fields = '__all__' def create(self, validated_data): images_data = validated_data.pop('images') task = Task.objects.create(**validated_data) for image_data in images_data: TaskImage.objects.create(task=task, **image_data) return task models.py class Task(models.Model): title = models.CharField(max_length=100, blank=False) user = models.ForeignKey(User) def save(self, *args, **kwargs): super(Task, self).save(*args, **kwargs) class TaskImage(models.Model): task = models.ForeignKey(Task, on_delete=models.CASCADE) image = models.FileField(blank=True) However, when I do a post request: I get the following traceback: File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/rest_framework/viewsets.py" in view 95. return self.dispatch(request, *args, **kwargs) File "/Applications/Anaconda/anaconda/envs/godo/lib/python3.6/site-packages/rest_framework/views.py" in dispatch 494. response = self.handle_exception(exc) … -
from django.contrib.auth.models import User
I know that this question had been asked and answered already, but the solutions I saw so far are not solving the problem. I am trying to run the following command in python to authenticate users who log in a website I am currently building. 'from django.contrib.auth.models import User' However, I am getting the following error: 'Traceback (most recent call last): "C:\Users\<user>\Documents\GitHub\MegaPortal\BackEnd\BackEnd\test.py", line 4, in <module> from django.contrib.auth.models import User File "C:\Users\<user>\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\auth\models.py", line 2, in <module> from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager File "C:\Users\<user>\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\auth\base_user.py", line 47, in <module> class AbstractBaseUser(models.Model): File "C:\Users\<user>\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\base.py", line 100, in __new__ app_config = apps.get_containing_app_config(module) File "C:\Users\<user>\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\registry.py", line 244, in get_containing_app_config self.check_apps_ready() File "C:\Users\<user>\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\registry.py", line 127, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.' What is weird is that this command gives an error when I run on atom, but when I run using Django's shell, it does not give any error. I have already tried putting in my settings.py file the following command import django django.setup() but still nothing. Any help is highly appreciated. -
Dango Admin bracket highlighter
I've seeking solution for simple bracket highlighter(like match_brackets option in Sublime Text) for django-admin fields. After checking ckeditor and tinymce I came to conclusion that they are not that solution what I am looking for.