diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4821b77
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+venv
+.env
+config.py
\ No newline at end of file
diff --git a/db.sqlite3 b/db.sqlite3
new file mode 100644
index 0000000..9038823
Binary files /dev/null and b/db.sqlite3 differ
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000..dd1394a
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ """Run administrative tasks."""
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'twittermachine.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..bc00fe8
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,24 @@
+asgiref==3.5.2
+certifi==2022.9.24
+charset-normalizer==2.1.1
+config==0.5.1
+Django==4.1.3
+et-xmlfile==1.1.0
+idna==3.4
+numpy==1.23.5
+oauthlib==3.2.2
+openai==0.25.0
+openpyxl==3.0.10
+pandas==1.5.2
+pandas-stubs==1.5.2.221124
+python-dateutil==2.8.2
+pytz==2022.6
+requests==2.28.1
+requests-oauthlib==1.3.1
+six==1.16.0
+sqlparse==0.4.3
+tqdm==4.64.1
+tweepy==4.12.1
+types-pytz==2022.6.0.1
+typing_extensions==4.4.0
+urllib3==1.26.13
diff --git a/themachine/__init__.py b/themachine/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/themachine/__pycache__/__init__.cpython-310.pyc b/themachine/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..f2b19d0
Binary files /dev/null and b/themachine/__pycache__/__init__.cpython-310.pyc differ
diff --git a/themachine/__pycache__/admin.cpython-310.pyc b/themachine/__pycache__/admin.cpython-310.pyc
new file mode 100644
index 0000000..e187b02
Binary files /dev/null and b/themachine/__pycache__/admin.cpython-310.pyc differ
diff --git a/themachine/__pycache__/apps.cpython-310.pyc b/themachine/__pycache__/apps.cpython-310.pyc
new file mode 100644
index 0000000..08939a7
Binary files /dev/null and b/themachine/__pycache__/apps.cpython-310.pyc differ
diff --git a/themachine/__pycache__/models.cpython-310.pyc b/themachine/__pycache__/models.cpython-310.pyc
new file mode 100644
index 0000000..4778611
Binary files /dev/null and b/themachine/__pycache__/models.cpython-310.pyc differ
diff --git a/themachine/__pycache__/tests.cpython-310.pyc b/themachine/__pycache__/tests.cpython-310.pyc
new file mode 100644
index 0000000..f60a976
Binary files /dev/null and b/themachine/__pycache__/tests.cpython-310.pyc differ
diff --git a/themachine/__pycache__/urls.cpython-310.pyc b/themachine/__pycache__/urls.cpython-310.pyc
new file mode 100644
index 0000000..8eeaeb3
Binary files /dev/null and b/themachine/__pycache__/urls.cpython-310.pyc differ
diff --git a/themachine/__pycache__/utils.cpython-310.pyc b/themachine/__pycache__/utils.cpython-310.pyc
new file mode 100644
index 0000000..5bf9afe
Binary files /dev/null and b/themachine/__pycache__/utils.cpython-310.pyc differ
diff --git a/themachine/__pycache__/views.cpython-310.pyc b/themachine/__pycache__/views.cpython-310.pyc
new file mode 100644
index 0000000..c31af9f
Binary files /dev/null and b/themachine/__pycache__/views.cpython-310.pyc differ
diff --git a/themachine/admin.py b/themachine/admin.py
new file mode 100644
index 0000000..0ea5773
--- /dev/null
+++ b/themachine/admin.py
@@ -0,0 +1,6 @@
+from django.contrib import admin
+from .models import TextBlock
+# Register your models here.
+
+
+admin.site.register(TextBlock)
diff --git a/themachine/apps.py b/themachine/apps.py
new file mode 100644
index 0000000..16af23a
--- /dev/null
+++ b/themachine/apps.py
@@ -0,0 +1,7 @@
+from django.apps import AppConfig
+
+
+class ThemachineConfig(AppConfig):
+ default_auto_field = "django.db.models.BigAutoField"
+ name = "themachine"
+
diff --git a/themachine/migrations/0001_initial.py b/themachine/migrations/0001_initial.py
new file mode 100644
index 0000000..ed34620
--- /dev/null
+++ b/themachine/migrations/0001_initial.py
@@ -0,0 +1,29 @@
+# Generated by Django 4.1.3 on 2022-12-03 09:59
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = []
+
+ operations = [
+ migrations.CreateModel(
+ name="TextBlock",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("text", models.TextField(blank=True)),
+ ("tweet", models.TextField(blank=True)),
+ ],
+ ),
+ ]
diff --git a/themachine/migrations/__init__.py b/themachine/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/themachine/migrations/__pycache__/0001_initial.cpython-310.pyc b/themachine/migrations/__pycache__/0001_initial.cpython-310.pyc
new file mode 100644
index 0000000..da50560
Binary files /dev/null and b/themachine/migrations/__pycache__/0001_initial.cpython-310.pyc differ
diff --git a/themachine/migrations/__pycache__/__init__.cpython-310.pyc b/themachine/migrations/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..59bb7ab
Binary files /dev/null and b/themachine/migrations/__pycache__/__init__.cpython-310.pyc differ
diff --git a/themachine/models.py b/themachine/models.py
new file mode 100644
index 0000000..6332c1e
--- /dev/null
+++ b/themachine/models.py
@@ -0,0 +1,22 @@
+from django.db import models
+from .utils import create_tweet
+
+# Create your models here.
+
+class TextBlock(models.Model):
+ text = models.TextField(blank=True)
+ tweet = models.TextField(blank=True)
+
+ def save(self) -> None:
+ prompt = {}
+ prompt["hashtag"] = "#thethoughtmachine"
+ prompt["text"] = "Write an engaging, controversial tweet that has a high probability of getting viral or trending using these words:" + self.text
+ thething = create_tweet(prompt)
+ self.tweet = thething
+ print(thething)
+ return super().save()
+
+
+
+ def __str__(self):
+ return f"{self.text} {self.tweet}"
\ No newline at end of file
diff --git a/themachine/templates/main.html b/themachine/templates/main.html
new file mode 100644
index 0000000..9c18b2f
--- /dev/null
+++ b/themachine/templates/main.html
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+ Document
+
+
+{% block content %}{% endblock %}
\ No newline at end of file
diff --git a/themachine/templates/themachine/home.html b/themachine/templates/themachine/home.html
new file mode 100644
index 0000000..13bdf04
--- /dev/null
+++ b/themachine/templates/themachine/home.html
@@ -0,0 +1,42 @@
+{% extends 'main.html' %}
+{% block content %}
+
+
+
Hello!
+
This is the Thought Machine!
+
+
This is a tool to create tweets using ai for you! I mean, this is the future right? Why would you think of a tweet if ai can do a better, more engagable tweet than yourself?