Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
django core 'dict' object is not callable
Django 2.0.1 python 3.6.3 Hi I have an address form which is a kind of extended user model form. The form asks for name, birth-date, address and phone info. I do some form validation on the form fields, for example the birth-date entered must be at least 18 years ago. I also overwrite the form's clean method to verify the US address via the USPS address api. After the address info is verified the validated/normalized address values returned from the USPS are put into the cleaned_data dict and are returned. After the cleaned_data return, Django eventually calls _get_response() in django/core/handlers/base.py. There is a section ... if response is None: wrapped_callback = self.make_view_atomic(callback) try: response = wrapped_callback(request, *callback_args, **callback_kwargs) except Exception as e: response = self.process_exception_by_middleware(e, request) that throws the error: TypeError at / 'dict' object is not callable What does that mean in this context? -
Django groups and permissions in API level (with django-rest-framework)
Consider the following scenario; I have a bunch of Users and API classes. I need to restrict access to each API by checking the requested user's group permissions and allow the user to do group permitted stuff. Suppose I have a user user_xx, he belongs to group group_xx and has permissions activity | activity | Can add activity. When user_xx tries to access MyActivityAPI through HTTP-DELETE method the view class should restrict the access.Can do I achieve this feature? If possible, How?What I'd triedCreated some groups & assigned permissions to them and added users to their corresponding groups. I tried to access one of the restricted api, but it allows me to access (expected behaviour : restrict the user from the api). -
Formatting json data in python with djano
I'm having trouble formatting json data and displaying certain fields in python. What I'm looking to do is only display the name and the price on a webpage via djano. I've tried many different way but the only code that works right now is showing all the data not just the name and price. the data is as follows: { "totalCount_str": "10134", "items": [ { "adjustedPrice": 306988.09, "averagePrice": 306292.67, "type": { "id_str": "32772", "href": "https://crest-tq.eveonline.com/inventory/types/32772/", "id": 32772, "name": "Medium Ancillary Shield Booster" } }, { "..." } ], "pageCount": 1, "pageCount_str": "1", "totalCount": 10134 } item.py import requests from bs4 import BeautifulSoup Collects the item price chart page = requests.get('api.eveonline.com/xxxxx') Creates a BS4 object soup = BeautifulSoup(page.text, 'html.parser') item_name = soup.find(name_='') item_price = soup.find(averagePrice='') print(name) print(price) -
Nested and Integrated Crispy Layouts
TLDR Question: How do you make one crispy form with an ¿integrated?(not sure if this is considered inline) layout with multiple models(some related, some not). I am trying to understand several things in Django: forms, formsets, nested forms, and crispy, and I've been at it for a while, and feel I am close, just need someone to help connect the dots. I'm not sure how to accomplish it without crispy, so I started down this path thinking crispy was the solution. Please correct if I am wrong, thanks :) I would like one form (as in HTML form, not necessarily Django Form), that has a primary model with lots of fields, but with secondary/tertiary models in the middle of the primary fields. I am somewhat near the layout, but can't seem to get the secondary/tertiary models to render in the middle of the layout, let alone compile (at the bottom) without crispy/django erroring. Here is what I am trying to attain Files For reference models.py #Black in the picture class Truck(models.Model): name = models.CharField(…) … #Blue in the picture class QuickInspection(models.Model): odometer = models.IntegerField(…) … (created_at, user_cookie#who did it, …) truck = models.ForeignKey(Truck) ----- #These two are unrelated to the … -
I wanna hand over arguments to URL
I wanna hand over arguments to URL.I wrote in urls.py app_name = 'app' urlpatterns = [ url(r'^(?P<id>[0-9a-zA-Z]{10})/user_data$', views.UserViewSet.get_user_data, name='get_user_data'), ] in views.py class UserViewSet(): def get_user_data(request, **id): I wanna make a url is connected registed id & regist_time &group like https://localhost:8000/app/user_data?regist_time=2018-01-01T02:00:00&group=A .I searched Django tutorial but I cannot understand I should write URL or views to connect regist_time &group.I saw news.views.month_archive(request, year='2005', month='03') in url but in my case regist_time &group is changed each user.regist_time &group's data is in **id like ison style.So I do not know how to write it.What should I write it? -
Django 'manage.py test' failing to migrate models to test database
I am having trouble running unit tests with Django. According to the Django docs: https://docs.djangoproject.com/en/2.0/topics/testing/advanced/#using-different-testing-frameworks The default Django testing behavior involves: Performing global pre-test setup. Looking for tests in any file below the current directory whose name matches the pattern test*.py. Creating the test databases. Running migrate to install models and initial data into the test databases. Running the system checks. Running the tests that were found. Destroying the test databases. Performing global post-test teardown. Anytime I try to run ./manage.py test The Django gets as far as step 3, creating the test database, then throws an error django.db.utils.ProgrammingError: relation "accounts_user" does not exist It seems it is failing to migrate my models to the test database. Since it crashes it doesn't remove the test database. I can psql into the database and see that it is empty. This behavior occurs even if I don't have any tests written out. def user_image_path(instance, filename): ''' https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.FileField.upload_to ''' first_name = instance.first_name.lower().replace(" ", "_") last_name = instance.last_name.lower().replace(" ", "_") cleaned_filename = filename.lower().replace(" ", "_") return '{0}_{1}/images/avatar/{2}'.format(first_name, last_name, cleaned_filename) class UserManager(BaseUserManager): def create_user(self, email, first_name, last_name, username=None, password=None): if not email: raise ValueError("Users must have a valid email address") if not first_name and last_name: … -
How do I list columns no inherited from base classes?
I have this class: class DataCommonInfoText(models.Model): a_col = model.TextField() def is_data(self): return True class Meta: abstract = True And a class that inherits from it: class MoreData(DataCommonInfoText): another_col = models.IntegerField() I want to list as strings all the columns in MoreData that are not inherited from DataCommonInfoText. How do I do this? -
Django Admin - Create an object and Create+Add a many other object (ForeignKey)
I have a 'Test'(:a.k.a exam) model that can contain an indeterminate number of questions. I would like to be able to create these tests directly in the Admin part of Django. How should I proceed? Do I have to program the logic from scratch or Django has already thought about this case? class Question(models.Model): question = models.CharField() answer_a = models.Boolean() solution_a = models.Boolean() ... class Test(models.Model): name = models.CharField() ... class TestQuestion(models.Model): """connect many questions to a test""" test_fk = models.ForeignKey(Test) question_fk = models.ForeignKey(Question) -
manage.py migrate error for python Django
I entered the code: python manage.py migrate with the return being huge and ending with: RecursionError:maximum recursion depth exceeded The start of the large return was: File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "/home/etucks/webapps/env/lib/python3.6/site-packages/django/core/managment/__init__.py", line 371, in execute_from_command_line utility.execute() File "\home\etucks\webapps\env\lib\python3.6/site-packages/django/core/management/__init__.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/etucks/webapps/env/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **cmd_options) This goes on for awhile until it gets to: File "/home/etucks/webapps/env/lib/python3.6/site-packages/django/urls/resolvers.py", line398, in check warnings.extend(check_resolver(pattern)) File "/home/etucks/webapps/env/lib/python3.6/site-packages/django/core/checks/urls/py", line 23, in check_resolver return check_method() This repeats a huge number of times until: File "/home/etucks/webapps/env/lib/python3.6/site-packages/django/urls/resolvers.py", line 322, in check warnings = self._check_pattern_name() RecursionError: maximum recursion depth exceeded -
Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)
I’ve played with a little Django (v2.0.1) locally. Now I am trying to implement a test case on my production Apache web server. I’m running an Ubuntu 14.04 DigitalOcean droplet (will upgrade to 18.04 later this year). I got Django running. Here it is: http://www.angeles4four.info:8000/ Before I log into my admin panel, I figure it’s best practices to set up HTTPS first. But when I visit that URL, Chrome throws this message: This site can’t provide a secure connection www.angeles4four.info sent an invalid response. ERR_SSL_PROTOCOL_ERROR And my shell on my server shows this message: [20/Jan/2018 23:54:39] "GET / HTTP/1.1" 200 16559 [21/Jan/2018 00:01:23] code 400, message Bad request syntax ('\x16\x03\x01\x00Ì\x01\x00\x00È\x03\x03&6U\x10µ\x82\x97\x7f´8\x1e«\x0e¿ÿ§\x89æ\x82\r¢G§\x01ç°P%\x80)ÕÃ\x00\x00\x1c * À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00') [21/Jan/2018 00:01:23] You're accessing the development server over HTTPS, but it only supports HTTP. That’s because SSL isn’t set up. My current SSL Certificate Authority is Let’s Encrypt. SSL is running properly for my public_html content but not for my recent deployment of Django. I found some resources elsewhere on SO for setting up SSL with Django. In an SO post titled, “Configure SSL Certificate on Apache for Django Application (mod_wsgi)”, a highly upvoted answer by Alexey Kuleshevich suggests a template for 000-default.conf and default-ssl.conf for Apache vhosts. … -
How to remove the backslash after add a word"specifics" in the urlpattern from the Django tutorial 03?
django tutorial 03 I follow the tutorail and add the word "specifics" in the urlpattern # added the word 'specifics' path('specifics/<int:question_id>/', views.detail, name='detail'), But after I add it, the url in the index turns to like this : http://127.0.0.1:8000/polls/specifics/1// There are 2 backslash in the end.Why? Is that a bug? How to fix it? -
How to deploy Django without mod_wsgi
I'm relatively new to web development, but I have a couple years experience working with python, so I figured I would build my first production site using django. I've spent the last few days learning the basics and building a test site running on my local machine. Today, I've been trying to deploy my site to production; however, I've hit a pretty large stumbling block. The django documentation suggests using mod_wsgi for apache deployments. I followed the install instructions here, only to realize that I don't have access to make any changes to apache - I'm currently on a shared hosting plan. Apparently, to perform the install, I would have to upgrade to a VPS plan, which costs a lot more. Any advice for a new web developer trying to get a proof-of-concept web app together (preferably with feedback gathered from real users) on a budget? I think I have two options: Eat the cost on my current web hosting plan. Try to find a cheaper host that specializes in django hosting. I've been looking at the following (suggestions here would be wonderful): Heroku DigitalOcean A2Hosting Try some sort of manual deployment. Is this possible or has anybody ever made … -
How to implement SAML based SSO Authentication to my django app.
I am planning to implement SAML based SSO Authentication to my django app. which is the best Identity provider to use and what are the steps to set up. Any help will be appreciated. Thanks. -
Can't figure out how to configure email settings for cookiecutter-django
I've set up a cookiecutter-django project for testing and it worked just fine printing the confirmation email to the console. However, it's important to me to also test the actual sending of the emails and when I tried to adjust the settings for a local testing environment, it gave me a "SMTP AUTH extension not supported by server." error after adding a new account. I changed EMAIL_BACKEND to EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' and added the relevant EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER, and EMAIL_HOST_PASSWORD settings in the local.py settings file. I'm using a yahoo account that was set up for this purpose and worked just fine outside of Django. I can't find anything in the cookie-cutter documentation about how to configure this and the Django documentation has been less than helpful. -
Django REST framework, dealing with related fields on creating records
Preliminary note: this is a rather newbie question, though I have not found a sufficient answer on StackOverflow; many similar questions, but not this one. So I am asking a new question. The problem: I'm having difficulty creating records where one field is a foreign key to an existing record, and I do not know what I'm doing wrong in my code. In my app there are two models in question, a one-to-many relationship between Company and BalanceSheet: models: class Company(models.Model): cik = models.IntegerField(default=0, unique=True) symbol = models.CharField(max_length=4, unique=True) name = models.CharField(max_length=255, unique=True) def __str__(self): return self.symbol class BalanceSheet(models.Model): company = models.ForeignKey(Company, null=True, on_delete=models.CASCADE, related_name='balance_sheets',) date = models.DateField() profit = models.BigIntegerField() loss = models.BigIntegerField() class Meta: unique_together = (('company', 'date'),) def __str__(self): return '%s - %s' % (self.company, self.date) serializers: class BalanceSheetSerializer(serializers.ModelSerializer): company = serializers.StringRelatedField() class Meta: model = BalanceSheet fields = ('company','date','profit','loss') class CompanySerializer(serializers.ModelSerializer): class Meta: model = Company fields = ('cik', 'symbol', 'name') Views: class BalanceSheetCreate(generics.CreateAPIView): '''Creates a company in the database''' model = BalanceSheet queryset = BalanceSheet.objects.all() serializer_class = BalanceSheetSerializer urls include: url(r'^(?P<symbol>[A-Z]{1,4})/create-balance-sheet/$', views.BalanceSheetCreate.as_view(), name='create_balance_sheet'), To this point, I have zero problem reading data. However, when trying to create records, I get errors I don't understand: curl … -
Telegram BOT webook sending empty POST
I'm trying to get the payload of the webhook in a BOT webhook in Django. @csrf_exempt def webhook(request): print(request.get_full_path()) print(request.POST) print(request.GET) return HttpResponse("OK") The webhook calls are working fine {"ok":true,"result":{"url":"...","has_custom_certificate":false,"pending_update_count":0,"last_error_date":1516490058,"last_error_message":"Wrong response from the webhook: 503 Service Unavailable","max_connections":40}} (last_error_message was solved) <QueryDict: {}> <QueryDict: {}> [20/Jan/2018 23:16:17] "POST /webhook/secure/ HTTP/1.1" 200 2 But above text is what I'm getting in the POST and GET method each time I get a message. Always empty. Maybe I'm missing something in the Telegram part, since I've made a POST request to the same URL and it's printing correct information. -
Error: RuntimeWarning: DateTimeField Comments.timestamp received a naive datetime while time zone support is active
I'm getting this error when I run python manage.py test - I believe it could be because of my transition from Django 1.10 to 1.11. I've commented out the actual field # timestamp = models.DateTimeField(default=timezone.now, blank=True) in my models, and I was still getting the error so I commented out all instances of it in the Migration history: class Migration(migrations.Migration): dependencies = [ ('comment', '0003_comment_new_position'), ] operations = [ # migrations.RemoveField( # model_name='comment', # name='timestamp', # ), ] class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('post', '0001_initial'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('destination', models.CharField(blank=True, default='1', max_length=12)), ('parent_id', models.IntegerField(default=0)), ('comment_text', models.TextField(blank=True, max_length=350, null=True)), # ('timestamp', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('children', models.IntegerField(default=0)), ('parent_comment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', related_query_name='replies', to='comment.Comment')), ('post', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='post.Post')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], however I'm still getting the error. Full traceback Creating test database for alias 'default'... /Users/zorgan/Desktop/postr1/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1451: RuntimeWarning: DateTimeField Comments.timestamp received a naive datetime (2018-01-20 23:11:33.621828) while time zone support is active. RuntimeWarning) Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/Users/zorgan/Desktop/postr1/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/Users/zorgan/Desktop/postr1/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/zorgan/Desktop/postr1/lib/python3.5/site-packages/django/core/management/commands/test.py", line 29, in run_from_argv super(Command, self).run_from_argv(argv) … -
Error when creating superuser with custom user model | Django
I have created a custom user model in Django (see my code below), but when I do 'python manage.py createsuperuser' and enter an email and password in my terminal I get the error: in create_superuser is_admin=True TypeError: create_user() missing 2 required positional arguments: 'last_name' and 'email' Any help would be much appreciated! from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin class UserManager(BaseUserManager): def create_user(self, first_name, last_name, email, password=None, is_staff=False, is_admin=False): user_obj = self.model( first_name = first_name, last_name = last_name, email = self.normalize_email(email), ) user_obj.set_password(password) #set and change password? user_obj.staff = is_staff user_obj.admin = is_admin user_obj.save(using=self._db) return user_obj def create_staffuser(self, email, password=None): user = self.create_user( email, password=password, is_staff=True ) return user def create_superuser(self, email, password=None): user = self.create_user( email, password=password, is_staff=True, is_admin=True ) return user class User(AbstractBaseUser, PermissionsMixin): first_name = models.CharField(max_length=255, blank=True, null=True) last_name = models.CharField(max_length=255, blank=True, null=True) email = models.EmailField(max_length=255, unique=True) staff = models.BooleanField(default=False) admin = models.BooleanField(default=False) timestamp = models.DateTimeField(auto_now_add=True, auto_now=False) USERNAME_FIELD = 'email' objects = UserManager() def __str__(self): return self.email def get_first_name(self): return self.email def get_last_name(self): return self.email def has_perm(self, perm, obj=None): return True def has_module_perms(self, app_label): return True def get_short_name(self): return self.email @property def is_staff(self): return self.staff @property def is_admin(self): return self.admin -
How to make Celery PeriodicTask start running in future?
I want to create a periodic task, but also want to add a "start-time" for that periodic task. Is there a way to do this ? -
Django testing: assertionError 'form' not used to render response
I am getting this error message when I try to test a form validation in Django. AssertionError: The form 'form' was not used to render the response I am trying to test a couple things around a FileUpload form. What is strange is that only one test is failing, out of bunch that use the form. For example, the first and second test below are almost identical, yet the first one is successful and the second returns this AssertionError. The only difference between first and second is file path and the field attribute. And I can't narrow down the problem to these two items. def test_invalid_file_extension_error(self): date = dt(2018,1,14) with open(bad_path) as fp: data = { 'account': self.account.pk, 'date': self.date.strftime("%d-%m-%Y"), 'file': fp } response = self.client.post(reverse('saveskore:upload-savings'), data, follow=True) field = 'file' self.assertEqual(response.status_code, 200) self.assertFormError(response, 'form', field, u'Unsupported file extension.') def test_invalid_due_to_future_date(self): date = dt(2020,1,1) with open(good_path) as fp: data = { 'account': self.account.pk, 'date': self.date.strftime("%d-%m-%Y"), 'file': fp } response = self.client.post(reverse('saveskore:upload-savings'), data, follow=True) field = 'date' self.assertEqual(response.status_code, 200) self.assertFormError(response, 'form', field, u'The date cannot be a future date!') Here's my view: class UploadView(CreateView): model = SaveReports form_class = SaveReportsForm def form_valid(self, form): report = form.save() account = ReportsToTraxns( account = … -
create separate Django admin panel
I'm new into Django had 5 years of experience in PHP I couldn't find the answer to my questions after hours of research! is it possible to create completely separate admin panel in Django? how authentication works on Django?! on a user control panel for example how to control sessions and let user log in into the panel etc. what is the correct way to use NOSQL DB's like Mongodb as backend for Django? -
How to exclude inactive (soft deleted) foreign key fields in Django Model Forms?
I have 2 models: Category and Listing where Listing belongs to Category. I've created a Listing ModelFrom. How do I exclude category models that are inactive from displaying on forms? class Category(models.Model): active = models.BooleanField(default=False) .... class Listing(models.Model): category = models.ForeignKey('Category') .... class ListingForm(forms.ModelForm): class Meta: model = Listing fields = ['category'] form = ListingForm(initial={}) When I render 'form' on html, it displays the category select field displays the inactive categories. -
django formset validation MultiValueDictKeyError
Using django 1.8, I am making a custom inline form. models.py: class Task(models.Model): description = models.CharField(max_length=255) project = models.ForeignKey('Project') def __unicode__(self): return str(self.description) class Project(models.Model): name = models.CharField(max_length=255, unique=True) views.py @login_required def project(request, proj_id): proj = Project.objects.get(id=proj_id) TaskFormSet = inlineformset_factory(Project, Task, fields=('description',), extra=0) if request.method == "POST": proj_form = ProjectForm(request.POST, instance=proj) formset = TaskFormSet(request.POST, instance=proj) if proj_form.is_valid() and formset.is_valid(): formset.save() proj_form.save() return HttpResponseRedirect('/project/{}'.format(proj_id)) else: formset = TaskFormSet(instance=proj) proj_form = ProjectForm(instance=proj) data = {'proj_form': proj_form, 'formset': formset, 'proj_id': proj_id} return render(request, 'project.html', data) my template: project.html {% extends "admin/base_site.html" %} {% block extrahead %} {% endblock %} {% block content %} Project {{project_id}} <form method="post" action=""> {% csrf_token %} {{proj_form}} <table border="2"> {{formset}} </table> <input type="submit" value="Save"/> </form> {% endblock %} This works fine; but I want to customize it more so I change the template as below new template: {% extends "admin/base_site.html" %} {% load staticfiles %} {% block extrahead %} <script src="{% static "js/jquery.min.js" %}"></script> <script src="{% static "js/dynamic_formset.js" %}"></script> <script type="text/javascript"> $(function () { $('.add-row').click(function() { return addForm(this, 'form'); }); $('.delete-row').click(function() { return deleteForm(this, 'form'); }) }) </script> {% endblock %} {% block content %} Project {{project_id}} <form method="post" action=""> {% csrf_token %} {{proj_form}} <table id="id_forms_table" border="1" cellpadding="0" … -
Django middleware: UnboundLocalError: local variable 'background_color' referenced before assignment
I'm trying to randomise certain elements of my theme across a website I'm building. I thought it might be quite nice to experiment with defining some custom middleware to handle this. But it looks like I've gone wrong somewhere: middleware.py: class RandomThemeAppearanceMiddleware(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): theme = { background_color: '#266040', contrast: '#3bbfad', color: '#ffffff', } background_colors = ['#266040', '#009a16', '#015e85', '#d6006d'] background_color = random.choice(background_colors) if background_color == '#266040': theme['contrast'] = '#3bbfad' elif background_color == '#009a16': theme['contrast'] = '#fedf21' elif background_color == '#015e85': theme['contrast'] = '#0590b3' elif background_color == '#d6006d': theme['contrast'] = '#f97fb5' else: pass theme['background_color'] = background_color request.background_color = theme['background_color'] request.contrast = theme['contrast'] request.color = theme['color'] return self.get_response(request) Django debug is telling me the following: UnboundLocalError at / local variable 'background_color' referenced before assignment Can anyone shed any light on why this is error is being thrown? -
How to set a Background image in Django template?
I am new to Django and was using it for my project until I faced a small problem which is really small but is bothering me from 2 days. How to apply a background image in the django template ? Here's my index.html :- <!DOCTYPE html> {% load static %} <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel=" stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <link href="https://fonts.googleapis.com/css?family=Cabin+Sketch" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Dosis:800" rel="stylesheet"> <title>Document</title> <style type="text/css"> body { background: url({% static "images/dumb2.jpg" %}); background-size: cover; } .heading { color: white; font-family: 'Sedgwick Ave Display', cursive; font-size: 10vw; letter-spacing: 20px; color: rgb(0, 255, 170); padding-top: 20px; font-family: 'Cabin Sketch', cursive; } .data-rows { padding-top: 10px; } .textfield-labels { color: white; font-weight: 600; } .textfield { border: 5px solid black; } .signup-heading { color: white; font-family: 'Dosis', sans-serif; letter-spacing: 20px; } .bored { height: 300px; width: 300px; } .font-icons { color: white; font-size: 50px; } .description { color: white; font-weight: 600; } .first-description { padding: 10px; border-radius: 20px; border: 1px solid rgb(117, 19, 19); animation-name: first-block; animation-duration: 6s; animation-iteration-count: infinite; animation-direction: alternate; } .left-column { padding: 20px; } ::-moz-placeholder { text-align: center; } ::-webkit-input-placeholder { text-align: center; } @keyframes first-block …