Re: LookupError: No installed app with label 'admin'.

2019-05-21 Thread Chris Bartos
When in your virtual environment, if you run 'pip install django' it should install sqlparse automatically. If not, you have to install it manually. 'pip install sqlparse' On Sunday, May 19, 2019 at 10:11:15 PM UTC-4, This is a test message wrote: > > Hi, > > > > I am new to django and am tryi

Re: Data base connection problem

2017-04-17 Thread Chris Bartos
Few things you can do: 1. Check to make sure your app is in INSTALLED_APPS 2. Delete the migrations folder and run 'manage.py makemigrations' & 'manage.py migrate' again 3. depending on the name of the app (let's say student) you can try running 'manage.py makemigrations student'

Re: Django-admin.py Error

2017-04-17 Thread Chris Bartos
This issue is something to do with your Python version. Uninstall Python and install Python 2.7.8 instead of 2.7.7 as it seems there are issues with it. Chris On Tuesday, May 26, 2015 at 1:06:07 AM UTC-5, Shashwat singh wrote: > > Django is properly installed but when i run, django-admin.py it

Re: Single Page Application in Django

2017-01-10 Thread Chris Bartos
Hi, You don't have to use one or the other. You can use both authentication mechanisms. You would just list each authentication mechanism backend in your settings.py file. So, what would happen is the authentication framework will loop through each of the backends and if one backend fails than

Re: Authentication for mobile devices

2016-12-27 Thread Chris Bartos
Hi Deep, In order to authenticate on mobile applications, you'll need to create an REST API and authenticate using Token Authentication or OAuth2 Authentication (Social Media: Google, Facebo

Re: Django REST Authenticate with Session in external app

2016-12-27 Thread Chris Bartos
Hello there! Although you COULD use Session Authentication to authenticate users from external clients. I don't recommend it. It's going to be a pain. Instead what I recommend is using eit

Re: variable to a template

2016-04-09 Thread Chris Bartos
There are probably 3 ways you can do this: 1) Use a Filter You should be able to use the "add" filter to concatenate two strings. 2) Map the elements of your array in your v

Re: New to Django

2016-03-01 Thread Chris Bartos
The best way to use Python especially Django is by creating what is called a "Virtual Environment". This is a separate instance of Python that you can install all the tools that you need to run your Django app without having to messing up your current Python instance. It will also help to freez