Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django 2 Ajax CRUD with Python 3.7 and jQuery
In this tutorial, you'll learn how to send Ajax requests in Django 2 and Python 3.7 to add CRUD operations in your application and manipulate your Django models and database without having to refresh your web pages each time. Ajax stands for Asynchronous JavaScript and XML and it's a way for getting data from the server and updating the page on the fly without refreshing the page. Creating a Virtual Environment Make sure you have Python 3 installed (Python 3.7 is the latest as of this writing) and start by creating a virtual environment for your project's packages: $ python -m venv myenv Next, activate your virtual environment using: $ source myenv/bin/activate Installing Django 2 and Creating a Project Now, you need to install Django using pip: $ python -m pip install django Next, create a Django project using: $ django-admin startproject djangoajaxdemo Next you need to create a Django application using the manage.py script: $ cd djangoajaxdemo $ python manage.py startapp rooms Next you need to add it to your project's installed apps array in the settings.py file: INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rooms' ] Adding jQuery In this tutorial, we'll be using jQuery to … -
Python Overtakes Java
It's fitting that the first bl... -
Get List of Current Users
We get this question a good am... -
Facebook's Parse is Closing
[Parse](http://parse.com/) is ... -
Python Cheat Sheet
A quick reference guide for us... -
My Equipment
### Computer Laptop: [http:... -
AngularJS vs jQuery
### AngularJS is a framework ... -
Django App Structure
To make your individual Django... -
Syncdb is ... gone?
Yup `python manage.py syncdb` ... -
A Fantastic Ted Talk
This is by far one of the most... -
Everything coming in 2017
### Topics - [Django v1.11](h... -
*args and **kwargs
So when you write any given fu... -
Which Version to Use?
When you watch or read tutoria... -
New URL Structure for Django
Django 1.10 has changed the re... -
Testing Email in Django with send_mail
Sometimes you need to test tha... -
TemplateDoesNotExist error
I see this error come up a lot... -
post_save vs pre_save vs override save method
Which is better ... `post_save... -
Hats off to you...
CFE Community! Hats off to ... -
Introducing Ask
At CFE, our fundamental goal i... -
Local Domain & Subdomain Testing in Mac & Linux
What to do when you want to te... -
Activate, Reactivate, Deactivate your Virtualenv
<div class='alert alert-warnin... -
Random String Generator in Python
Sometimes you need a random st... -
A Unique Slug Generator for Django
Using the [Random String Gener... -
Django PositionField
Sometimes you need ordering in... -
Srvup 2 is here
The future of education will l...