Skip to content

Commit

Permalink
adding base files
Browse files Browse the repository at this point in the history
  • Loading branch information
arya-oss committed Apr 12, 2016
0 parents commit 19dbd0c
Show file tree
Hide file tree
Showing 56 changed files with 15,896 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# python objects and caches files
*.pyc
*.pyo
# media files

media/

# django setting file

todos/settings.py
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## ToDos Web Application

### Overview and Features

> Simple ToDo work managing web Application for different Users.
* __Login and Registration__
* __Update and Manage Profile__
* __Manage ToDos (add, update, delete)__
* __Set Priority for ToDos__

### Setup

* clone this repo.
```
git clone https://github.com/rajmani1995/todos-django.git
```
* install Requirements
```
pip install -r requirements.txt
```
* rename settings.save.py to settings.py and change configuration
```bash
# Run this commands to migrate the database
python manage.py migrate
# create super user (Admin)
python manage.py createsuperuser
# Run website
python manage.py runserver
```

### Requirements

* [Django](https://github.com/django/django)
* Any Database (Sqlite3 preferred)
* [Materialize CSS](https://materializecss.com)
* [Angular JS](https://angularjs.org/)
* [Jquery](https://github.com/jquery/jquery)
Binary file added db.sqlite3
Binary file not shown.
10 changes: 10 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todos.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
Empty file added mauth/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions mauth/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
7 changes: 7 additions & 0 deletions mauth/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from __future__ import unicode_literals

from django.apps import AppConfig


class MauthConfig(AppConfig):
name = 'mauth'
Empty file added mauth/migrations/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions mauth/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from __future__ import unicode_literals

from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions mauth/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
7 changes: 7 additions & 0 deletions mauth/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.conf.urls import url
from . import views
# Auth urls
urlpatterns = [
url(r'^$', views.index, name='auth_index'),
url(r'^login/', views.login, name='auth_login')
]
9 changes: 9 additions & 0 deletions mauth/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.

def index(req):
return HttpResponse(req, 'You wanna go to Auth home ?')

def login(req):
return render(req, 'auth/login.html', {'title':'Auth | Login', 'author': 'Rajmani Arya'})
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Django==1.9.5
django-ckeditor==5.0.3
django-widget-tweaks==1.4.1
Pillow==3.2.0
argparse==1.2.1
wsgiref==0.1.2
21 changes: 21 additions & 0 deletions static/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014-2016 Materialize

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 19dbd0c

Please sign in to comment.