Skip to content

Instantly share code, notes, and snippets.

View agrean's full-sized avatar

Abraham Kirumba agrean

  • Nakuru, Kenya
View GitHub Profile
@agrean
agrean / user_fixture_from_csv.py
Created November 1, 2018 22:42 — forked from jalopez/user_fixture_from_csv.py
Django: Creates a JSON fixture for user model, from a CSV file
#!/usr/bin/python
import csv
import json
import hashlib
import random
import string
from optparse import OptionParser
def random_string(length):
char_set = string.ascii_letters + string.digits
<!DOCTYPE html>
<html>
<?php
include 'config.php';
$fName=$_POST[FName];
$lName=$_POST[LName];
$username=$_POST[Username];
$password=$_POST[Password];
$phone=$_POST[phone];