diff --git a/.gitignore b/.gitignore
index 595f282..a7c3375 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,7 @@
__pycache__
*.egg-info
*.sqlite
-stickynotes.cfg
+codesmidgen.cfg
build
dist
.coverage
diff --git a/stickynotes.example.cfg b/codesmidgen.example.cfg
similarity index 82%
rename from stickynotes.example.cfg
rename to codesmidgen.example.cfg
index 9ecb6b4..29934d6 100644
--- a/stickynotes.example.cfg
+++ b/codesmidgen.example.cfg
@@ -1,3 +1,3 @@
-[stickynotes]
+[codesmidgen]
sqlalchemy_database_uri = sqlite:///
secret_key = yoursecretkeyhere
diff --git a/stickynotes/__init__.py b/codesmidgen/__init__.py
similarity index 72%
rename from stickynotes/__init__.py
rename to codesmidgen/__init__.py
index b932ff0..01bbc6d 100644
--- a/stickynotes/__init__.py
+++ b/codesmidgen/__init__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
-StickyNotes, yet another paste bin
+CodeSmidgen, yet another paste bin
"""
from configparser import ConfigParser
from pathlib import Path
@@ -8,8 +8,8 @@ from pathlib import Path
import quart_flask_patch # noqa: F401
from quart import Quart
-from stickynotes.db import db
-from stickynotes.views import views
+from codesmidgen.db import db
+from codesmidgen.views import views
def read_config(config_path=None):
@@ -17,16 +17,16 @@ def read_config(config_path=None):
Read the configuration file and return the values in a dictionary
"""
if config_path:
- config_file = config_path / 'stickynotes.cfg'
+ config_file = config_path / 'codesmidgen.cfg'
else:
- config_file = Path(__file__).parent / '..' / 'stickynotes.cfg'
+ config_file = Path(__file__).parent / '..' / 'codesmidgen.cfg'
if not config_file.exists():
return {}
config_parser = ConfigParser()
config_parser.read(config_file)
config = {}
- for option in config_parser.options('stickynotes'):
- config[option.upper()] = config_parser.get('stickynotes', option)
+ for option in config_parser.options('codesmidgen'):
+ config[option.upper()] = config_parser.get('codesmidgen', option)
return config
diff --git a/codesmidgen/__main__.py b/codesmidgen/__main__.py
new file mode 100644
index 0000000..c61b6f6
--- /dev/null
+++ b/codesmidgen/__main__.py
@@ -0,0 +1,3 @@
+from codesmidgen.app import application
+
+application.run()
diff --git a/stickynotes/app.py b/codesmidgen/app.py
similarity index 86%
rename from stickynotes/app.py
rename to codesmidgen/app.py
index 68079aa..ef91034 100644
--- a/stickynotes/app.py
+++ b/codesmidgen/app.py
@@ -3,7 +3,7 @@
This is the entry point for the WSGI server
"""
from pathlib import Path
-from stickynotes import make_app
+from codesmidgen import make_app
application = make_app(Path(__file__).parent.parent)
diff --git a/stickynotes/db.py b/codesmidgen/db.py
similarity index 100%
rename from stickynotes/db.py
rename to codesmidgen/db.py
diff --git a/stickynotes/models.py b/codesmidgen/models.py
similarity index 81%
rename from stickynotes/models.py
rename to codesmidgen/models.py
index 4e55d8c..c7851ed 100644
--- a/stickynotes/models.py
+++ b/codesmidgen/models.py
@@ -4,14 +4,14 @@ The models in use
"""
from datetime import datetime
-from stickynotes.db import Model, Column, Integer, String, Text, DateTime, Boolean
+from codesmidgen.db import Model, Column, Integer, String, Text, DateTime, Boolean
-class StickyNote(Model):
+class Smidgen(Model):
"""
The main (only?) table in the system
"""
- __tablename__ = 'sticky_notes'
+ __tablename__ = 'smidgens'
id = Column(Integer, autoincrement=True, primary_key=True)
title = Column(String(255))
diff --git a/stickynotes/static/custom.css b/codesmidgen/static/custom.css
similarity index 100%
rename from stickynotes/static/custom.css
rename to codesmidgen/static/custom.css
diff --git a/stickynotes/static/stickynotes.png b/codesmidgen/static/stickynotes.png
similarity index 100%
rename from stickynotes/static/stickynotes.png
rename to codesmidgen/static/stickynotes.png
diff --git a/stickynotes/static/stickynotes.svg b/codesmidgen/static/stickynotes.svg
similarity index 100%
rename from stickynotes/static/stickynotes.svg
rename to codesmidgen/static/stickynotes.svg
diff --git a/stickynotes/templates/about.html b/codesmidgen/templates/about.html
similarity index 73%
rename from stickynotes/templates/about.html
rename to codesmidgen/templates/about.html
index 46c170c..bf68f9c 100644
--- a/stickynotes/templates/about.html
+++ b/codesmidgen/templates/about.html
@@ -2,8 +2,8 @@
{% block content %}
-
About StickyNotes
-
StickyNotes is a quick code paste application written in Python with Quartz, SQLAlchemy, Mako, Pygments and a few other Python libraries.
+
About CodeSmidgen
+
CodeSmidgen is a quick code paste application written in Python with Quartz, SQLAlchemy, Mako, Pygments and a few other Python libraries.
{% endblock %}
diff --git a/stickynotes/templates/base.html b/codesmidgen/templates/base.html
similarity index 94%
rename from stickynotes/templates/base.html
rename to codesmidgen/templates/base.html
index 3d02ef9..1abe301 100644
--- a/stickynotes/templates/base.html
+++ b/codesmidgen/templates/base.html
@@ -4,7 +4,7 @@
- StickyNotes
+ CodeSmidgen
@@ -16,7 +16,7 @@