diff --git a/.gitignore b/.gitignore index af110197bcd3394c9ec1965cd540b46e16c0d8ac..3962ab90799e5dee687ce309a1508d0190534bde 100644 --- a/.gitignore +++ b/.gitignore @@ -24,8 +24,8 @@ yarn-error.log* *.eslintcache */media/account/images/ -the_social_network/django_static +social_network/django_static pypi/*/ -the_social_network/dist -the_social_network/the_social_network.egg-info \ No newline at end of file +social_network/dist +social_network/the_social_network.egg-info \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9a3fad77e07d3fe00ed0541cf51896ab67ad3db..8bb983aef31869bfff432fd8d57d7d92435dba58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ test: script: - echo "Testing ..." - docker-compose -f docker-compose.ci.yml pull - - docker-compose -f docker-compose.ci.yml run web sh -c "poetry run python manage.py makemigrations && poetry run python manage.py migrate && poetry run python manage.py test core -v 2" + - docker-compose -f docker-compose.ci.yml run web sh -c "poetry run python manage.py makemigrations && poetry run python manage.py migrate && poetry run python manage.py test the_social_network -v 2" deploy: only: @@ -43,9 +43,7 @@ deploy: - test script: - echo "Deploying ..." - - cd ./the_social_network - - mv ./the_social_network ./not_needed - - mv ./core ./the_social_network + - cd ./social_network - apk add py-pip - pip install poetry - poetry --version diff --git a/README.md b/README.md index 6c32fcb53bc5008b9c9880465b4b7097d18959d0..f8c84bd18bdaba5ba6fab7338ebc574db9cbd7af 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # The Social Network -`the_social_network/` is the backend of the most thinkable fronted for social networks, which was developed with [Django](https://www.djangoproject.com/) and [Django Rest Framework](https://www.django-rest-framework.org/) +`social_network/` is the backend of the most thinkable fronted for social networks, which was developed with [Django](https://www.djangoproject.com/) and [Django Rest Framework](https://www.django-rest-framework.org/) This subproject is the basis for any possible type of social networks. -The `core/` subfolder is the core of this project an is managed to working as a starting point for any further works on basic social networks. +The `the_social_network/` subfolder is the core of this project an is managed to working as a starting point for any further works on basic social networks. Use the [Postman-Documentation](https://documenter.getpostman.com/view/13331140/TzRNFVaC) and run it locally for a detailed overview about the API. Make sure the database is seeded with corresponding data. diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml index 0f0ff87877d3eab802235337eae733cffdf7a2b8..22affc95a5fa7aaffc0f0fadeeeed4d6d723b69e 100644 --- a/docker-compose.ci.yml +++ b/docker-compose.ci.yml @@ -1,7 +1,7 @@ version: "3" services: web: - build: ./the_social_network + build: ./social_network image: ${REGISTRY}/feger/the-social-network/web:latest volumes: - - ./the_social_network:/code \ No newline at end of file + - ./social_network:/code diff --git a/docker-compose.yml b/docker-compose.yml index a186eadccf58680390287d22147a8ecae29974f1..4ba01e491c8890961338f56d24c094b34d8aa819 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,11 +3,11 @@ version: '3' services: the_social_network: container_name: the_social_network - build: ./the_social_network + build: ./social_network restart: always command: sh -c "poetry run python manage.py collectstatic --noinput && poetry run python manage.py runserver 0.0.0.0:9000" volumes: - - ./the_social_network:/code + - ./social_network:/code networks: - webnet ports: diff --git a/the_social_network/Dockerfile b/social_network/Dockerfile similarity index 100% rename from the_social_network/Dockerfile rename to social_network/Dockerfile diff --git a/the_social_network/LICENSE b/social_network/LICENSE similarity index 100% rename from the_social_network/LICENSE rename to social_network/LICENSE diff --git a/the_social_network/README.md b/social_network/README.md similarity index 100% rename from the_social_network/README.md rename to social_network/README.md diff --git a/the_social_network/manage.py b/social_network/manage.py old mode 100755 new mode 100644 similarity index 87% rename from the_social_network/manage.py rename to social_network/manage.py index f7f55f928f7d3ac725a2ead5ea368033dd57a52f..71644c8b759a0b869d7cc116728a7c516442c5e3 --- a/the_social_network/manage.py +++ b/social_network/manage.py @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'the_social_network.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'social_network.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/the_social_network/core/migrations/__init__.py b/social_network/social_network/__init__.py similarity index 100% rename from the_social_network/core/migrations/__init__.py rename to social_network/social_network/__init__.py diff --git a/the_social_network/the_social_network/asgi.py b/social_network/social_network/asgi.py similarity index 70% rename from the_social_network/the_social_network/asgi.py rename to social_network/social_network/asgi.py index 5fea914abe523144f7d1c154e3a0c3da2990c303..60f23a2a8e53392ed805764a56b12c243cc9ca2d 100644 --- a/the_social_network/the_social_network/asgi.py +++ b/social_network/social_network/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for the_social_network project. +ASGI config for social_network project. It exposes the ASGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.asgi import get_asgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'the_social_network.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'social_network.settings') application = get_asgi_application() diff --git a/the_social_network/the_social_network/settings.py b/social_network/social_network/settings.py similarity index 91% rename from the_social_network/the_social_network/settings.py rename to social_network/social_network/settings.py index 84842f0bb7c73cd4aeb6610905a55b97d69e4be3..277489152eed975d7e354ea15db876e81151a200 100644 --- a/the_social_network/the_social_network/settings.py +++ b/social_network/social_network/settings.py @@ -1,5 +1,5 @@ """ -Django settings for the_social_network project. +Django settings for social_network project. Generated by 'django-admin startproject' using Django 3.1.2. @@ -42,7 +42,7 @@ INSTALLED_APPS = [ 'corsheaders', 'rest_framework', 'rest_framework.authtoken', - 'core', + 'the_social_network', ] MIDDLEWARE = [ @@ -56,7 +56,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'the_social_network.urls' +ROOT_URLCONF = 'social_network.urls' TEMPLATES = [ { @@ -74,7 +74,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'the_social_network.wsgi.application' +WSGI_APPLICATION = 'social_network.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases @@ -133,3 +133,8 @@ REST_FRAMEWORK = { # Folder to store media data MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + +# Default primary key field type +# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/the_social_network/the_social_network/urls.py b/social_network/social_network/urls.py similarity index 72% rename from the_social_network/the_social_network/urls.py rename to social_network/social_network/urls.py index a6b7db4cba1dde09a7fe801101c1db6d0e537187..44918e405acf95c6a7791f63d8f07ba837bb64cf 100644 --- a/the_social_network/the_social_network/urls.py +++ b/social_network/social_network/urls.py @@ -1,4 +1,4 @@ -"""the_social_network URL Configuration +"""social_network URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ @@ -21,8 +21,8 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), - url(r'^authentication/', include('core.urls.authenticationUrls')), - url(r'^accounts/', include('core.urls.accountUrls')), - url(r'^search/', include('core.urls.searchUrls')), - url(r'^contents/', include('core.urls.contentUrls')), + url(r'^authentication/', include('the_social_network.urls.authenticationUrls')), + url(r'^accounts/', include('the_social_network.urls.accountUrls')), + url(r'^search/', include('the_social_network.urls.searchUrls')), + url(r'^contents/', include('the_social_network.urls.contentUrls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/the_social_network/the_social_network/wsgi.py b/social_network/social_network/wsgi.py similarity index 70% rename from the_social_network/the_social_network/wsgi.py rename to social_network/social_network/wsgi.py index 21d6cfa778697bf5ead31733e197c347f0d7e97f..10441c1f6f9206ddb172b8ce4065222241a2166a 100644 --- a/the_social_network/the_social_network/wsgi.py +++ b/social_network/social_network/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for the_social_network project. +WSGI config for social_network project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'the_social_network.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'social_network.settings') application = get_wsgi_application() diff --git a/the_social_network/core/__init__.py b/social_network/the_social_network/__init__.py similarity index 100% rename from the_social_network/core/__init__.py rename to social_network/the_social_network/__init__.py diff --git a/the_social_network/core/admin.py b/social_network/the_social_network/admin.py similarity index 100% rename from the_social_network/core/admin.py rename to social_network/the_social_network/admin.py diff --git a/the_social_network/core/apps.py b/social_network/the_social_network/apps.py similarity index 70% rename from the_social_network/core/apps.py rename to social_network/the_social_network/apps.py index d180014e8bb2febb22415aaca9e2fe95bc6c5eec..a571ee17b2fc5285a9e51e444fe913e9bffc97df 100644 --- a/the_social_network/core/apps.py +++ b/social_network/the_social_network/apps.py @@ -2,4 +2,4 @@ from django.apps import AppConfig class AuthenticationConfig(AppConfig): - name = 'core' + name = 'the_social_network' diff --git a/the_social_network/core/migrations/0001_initial.py b/social_network/the_social_network/migrations/0001_initial.py similarity index 80% rename from the_social_network/core/migrations/0001_initial.py rename to social_network/the_social_network/migrations/0001_initial.py index 7ac9b1f12f78275b221441e1079c533471a2ca89..2da4701f679c6925bc6e82e300a99225e304ce77 100644 --- a/the_social_network/core/migrations/0001_initial.py +++ b/social_network/the_social_network/migrations/0001_initial.py @@ -26,8 +26,8 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), - ('from_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_account', to='core.account')), - ('to_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_account', to='core.account')), + ('from_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_account', to='the_social_network.account')), + ('to_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_account', to='the_social_network.account')), ], options={ 'ordering': ('-created',), @@ -36,7 +36,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='account', name='related_to', - field=models.ManyToManyField(blank=True, default=None, related_name='related_by', through='core.Relationship', to='core.Account'), + field=models.ManyToManyField(blank=True, default=None, related_name='related_by', through='the_social_network.Relationship', to='the_social_network.Account'), ), migrations.CreateModel( name='Statement', @@ -44,7 +44,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.CharField(max_length=120)), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), - ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.account')), + ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='the_social_network.account')), ], options={ 'ordering': ('-created',), @@ -63,8 +63,8 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), - ('hashtag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='hashtag', to='core.hashtag')), - ('statement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.statement')), + ('hashtag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='hashtag', to='the_social_network.hashtag')), + ('statement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='the_social_network.statement')), ], options={ 'ordering': ('-created',), @@ -73,15 +73,15 @@ class Migration(migrations.Migration): migrations.AddField( model_name='statement', name='tagged', - field=models.ManyToManyField(blank=True, default=None, related_name='tags', through='core.HashtagTagging', to='core.Hashtag'), + field=models.ManyToManyField(blank=True, default=None, related_name='tags', through='the_social_network.HashtagTagging', to='the_social_network.Hashtag'), ), migrations.CreateModel( name='AccountTagging', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), - ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='account', to='core.account')), - ('statement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.statement')), + ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='account', to='the_social_network.account')), + ('statement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='the_social_network.statement')), ], options={ 'ordering': ('-created',), @@ -90,7 +90,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='statement', name='mentioned', - field=models.ManyToManyField(blank=True, default=None, related_name='mentions', through='core.AccountTagging', to='core.Account'), + field=models.ManyToManyField(blank=True, default=None, related_name='mentions', through='the_social_network.AccountTagging', to='the_social_network.Account'), ), migrations.CreateModel( name='Reaction', @@ -98,8 +98,8 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), ('vote', models.PositiveSmallIntegerField(choices=[(1, 'like'), (2, 'dislike')], default=1)), - ('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='child', to='core.statement')), - ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent', to='core.statement')), + ('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='child', to='the_social_network.statement')), + ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent', to='the_social_network.statement')), ], options={ 'ordering': ('-created',), @@ -108,6 +108,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='statement', name='reactions', - field=models.ManyToManyField(blank=True, default=None, related_name='reaction_of', through='core.Reaction', to='core.Statement'), + field=models.ManyToManyField(blank=True, default=None, related_name='reaction_of', through='the_social_network.Reaction', to='the_social_network.Statement'), ), ] diff --git a/the_social_network/core/migrations/0002_auto_20211111_1220.py b/social_network/the_social_network/migrations/0002_auto_20211111_1220.py similarity index 96% rename from the_social_network/core/migrations/0002_auto_20211111_1220.py rename to social_network/the_social_network/migrations/0002_auto_20211111_1220.py index 4eed0fd51fd2f2f37d8d8e36b874c37792e02882..1044ed5f19c4b28faacaf608b9b99bc7f0c2965c 100644 --- a/the_social_network/core/migrations/0002_auto_20211111_1220.py +++ b/social_network/the_social_network/migrations/0002_auto_20211111_1220.py @@ -6,7 +6,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('core', '0001_initial'), + ('the_social_network', '0001_initial'), ] operations = [ diff --git a/the_social_network/the_social_network/__init__.py b/social_network/the_social_network/migrations/__init__.py similarity index 100% rename from the_social_network/the_social_network/__init__.py rename to social_network/the_social_network/migrations/__init__.py diff --git a/the_social_network/core/models.py b/social_network/the_social_network/models.py similarity index 95% rename from the_social_network/core/models.py rename to social_network/the_social_network/models.py index 34ef3619b4ca82310e325dca043cdc3509c68808..db6851b6c996c22218cf22413cc9ba98a5d407c9 100644 --- a/the_social_network/core/models.py +++ b/social_network/the_social_network/models.py @@ -14,7 +14,7 @@ class Statement(models.Model): """ This model represents an statement of an specific account. """ - author = models.ForeignKey('core.Account', on_delete=models.CASCADE) + author = models.ForeignKey('the_social_network.Account', on_delete=models.CASCADE) content = models.CharField(max_length=120, blank=False) created = models.DateTimeField(auto_now_add=True, db_index=True) # Add an hashtag between statements and hashtags over the tagging model @@ -24,7 +24,7 @@ class Statement(models.Model): symmetrical=False, related_name='tags', default=None) - mentioned = models.ManyToManyField('core.Account', + mentioned = models.ManyToManyField('the_social_network.Account', blank=True, through='AccountTagging', symmetrical=False, @@ -62,7 +62,7 @@ class Statement(models.Model): used_mentions: List[str] = self.__extract_mentioning() # resolve mentions after saving the statement for used_mention in used_mentions: - account: 'core.Account' = apps.get_model("core", "Account").objects.filter( + account: 'the_social_network.Account' = apps.get_model("the_social_network", "Account").objects.filter( user__username=used_mention).first() if account: self.add_mentioning(account=account) @@ -156,7 +156,7 @@ class Statement(models.Model): ).delete() return deleted - def __extract_mentioning(self) -> List['core.Account']: + def __extract_mentioning(self) -> List['the_social_network.Account']: """ This method extracts the mentions of accounts in the calling statement. Accounts names are alpha numeric words. @@ -165,7 +165,7 @@ class Statement(models.Model): """ return re.findall(r"@(\w+)", self.content) - def add_mentioning(self, account: 'core.Account'): + def add_mentioning(self, account: 'the_social_network.Account'): """ This method is for adding an mention of an account to the corresponding statement. :param account: The account to be mentioned. @@ -174,7 +174,7 @@ class Statement(models.Model): mentioning, created = AccountTagging.objects.get_or_create(statement=self, account=account) return created - def get_mentioning(self) -> List['core.Account']: + def get_mentioning(self) -> List['the_social_network.Account']: """ This method is to get all accounts mentioned by the calling statement. @@ -182,7 +182,7 @@ class Statement(models.Model): """ return list(self.mentioned.all()) - def remove_mentioning(self, account: 'core.Account'): + def remove_mentioning(self, account: 'the_social_network.Account'): """ This method is used to delete an specific mentioning of an account for the calling statement. @@ -244,7 +244,7 @@ class AccountTagging(Tagging): This model is to represent the mention of an account within an statement. """ # Which account should be mentioned? - account = models.ForeignKey('core.Account', related_name='account', on_delete=models.CASCADE) + account = models.ForeignKey('the_social_network.Account', related_name='account', on_delete=models.CASCADE) class Meta: ordering = ('-created',) diff --git a/the_social_network/core/serializers/accountSerializers.py b/social_network/the_social_network/serializers/accountSerializers.py similarity index 100% rename from the_social_network/core/serializers/accountSerializers.py rename to social_network/the_social_network/serializers/accountSerializers.py diff --git a/the_social_network/core/serializers/authenticationSerializers.py b/social_network/the_social_network/serializers/authenticationSerializers.py similarity index 100% rename from the_social_network/core/serializers/authenticationSerializers.py rename to social_network/the_social_network/serializers/authenticationSerializers.py diff --git a/the_social_network/core/serializers/contentSerializers.py b/social_network/the_social_network/serializers/contentSerializers.py similarity index 98% rename from the_social_network/core/serializers/contentSerializers.py rename to social_network/the_social_network/serializers/contentSerializers.py index cb936f0f2c594e54c940f2169f0ae6c007c2fda9..a70d2d3f66ec6f63d83713559fae7441bfa71c40 100644 --- a/the_social_network/core/serializers/contentSerializers.py +++ b/social_network/the_social_network/serializers/contentSerializers.py @@ -68,7 +68,7 @@ class AccountSerializer(serializers.ModelSerializer): user = UserPublicSerializer() class Meta: - model = apps.get_model("core", "Account") + model = apps.get_model("the_social_network", "Account") fields = ('user', 'image',) diff --git a/the_social_network/core/tests.py b/social_network/the_social_network/tests.py similarity index 99% rename from the_social_network/core/tests.py rename to social_network/the_social_network/tests.py index 26f67fa7b58bf203bfb2bcd8e03e2bf530a47cbe..5080a54c038cd1f75711dee15c95e59060093875 100644 --- a/the_social_network/core/tests.py +++ b/social_network/the_social_network/tests.py @@ -608,12 +608,6 @@ class TestGetStatementFeed(APITestCase): response: Response = self.client.get(path="/contents/statements/feed/") result = response.data self.assertTrue(len(result), 3) - print(result[0].get("id")) - print(result[1].get("id")) - print(result[2].get("id")) - print(self.statement_1.id) - print(self.statement_2.id) - print(self.statement_3.id) self.assertEqual(result[0].get("id"), self.statement_3.id) self.assertEqual(result[1].get("id"), self.statement_2.id) self.assertEqual(result[2].get("id"), self.statement_1.id) diff --git a/the_social_network/core/urls/accountUrls.py b/social_network/the_social_network/urls/accountUrls.py similarity index 100% rename from the_social_network/core/urls/accountUrls.py rename to social_network/the_social_network/urls/accountUrls.py diff --git a/the_social_network/core/urls/authenticationUrls.py b/social_network/the_social_network/urls/authenticationUrls.py similarity index 100% rename from the_social_network/core/urls/authenticationUrls.py rename to social_network/the_social_network/urls/authenticationUrls.py diff --git a/the_social_network/core/urls/contentUrls.py b/social_network/the_social_network/urls/contentUrls.py similarity index 100% rename from the_social_network/core/urls/contentUrls.py rename to social_network/the_social_network/urls/contentUrls.py diff --git a/the_social_network/core/urls/searchUrls.py b/social_network/the_social_network/urls/searchUrls.py similarity index 100% rename from the_social_network/core/urls/searchUrls.py rename to social_network/the_social_network/urls/searchUrls.py diff --git a/the_social_network/core/validation.py b/social_network/the_social_network/validation.py similarity index 100% rename from the_social_network/core/validation.py rename to social_network/the_social_network/validation.py diff --git a/the_social_network/core/views/accountViews.py b/social_network/the_social_network/views/accountViews.py similarity index 100% rename from the_social_network/core/views/accountViews.py rename to social_network/the_social_network/views/accountViews.py diff --git a/the_social_network/core/views/authenticationViews.py b/social_network/the_social_network/views/authenticationViews.py similarity index 100% rename from the_social_network/core/views/authenticationViews.py rename to social_network/the_social_network/views/authenticationViews.py diff --git a/the_social_network/core/views/contentViews.py b/social_network/the_social_network/views/contentViews.py similarity index 100% rename from the_social_network/core/views/contentViews.py rename to social_network/the_social_network/views/contentViews.py diff --git a/the_social_network/core/views/searchViews.py b/social_network/the_social_network/views/searchViews.py similarity index 100% rename from the_social_network/core/views/searchViews.py rename to social_network/the_social_network/views/searchViews.py