Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Django cannot install django-heroku'
I'm trying to install django-heroku on ubuntu. However, there is problem, after searching on the internet I don't even know how to solve it. It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install psycopg2 from source, please install the packages required for the build and try again. For further information please check the 'doc/src/install.rst' file (also at <https://www.psycopg.org/docs/install.html>). error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xgi1er3t/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-u5iwangg-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-xgi1er3t/psycopg2/ Thanks in advanced. -
Disable signup form on login with Google in Django
I am using django-allauth for my Django project. When the user logs in using the Gmail, the page is being redirected to /social/signup/ and prompting the user username and email to signup. Even if the user already exists, it is creating a new row when the user enters the details. How to make the user automatically login after he uses sign-in with Google. -
getting an error in settings.py in django
I have just pulled my code from GitLab and I'm currently using sublime text. My from is highlighted in red and when I try to run the code syntax invalid error . I have a closed square bracket at the end. -
{django webapplication }I am not able to apply 3 styles 1>bootstrap.min.css.map 2>popper.js.map 3>bootstrap.min.js.map
<link rel="stylesheet" type="text/css" href="{% static 'styles/bootstrap4/bootstrap.min.css' %}"> <script src="{% static 'styles/bootstrap4/popper.js' %}"></script> <script src="{% static 'styles/bootstrap4/bootstrap.min.js' %}"></script> I am learning about django through youtube from telusko chennal and I follow the step as describe in video I stuck at url:at 1:18:19 hour/mim/sec https://youtu.be/OTmQOjsl0eg hear is my four line which drag me into error and my vsstudio also shows me error like these Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via "editor.maxTokenizationLineLength"enter image description here. -
Cant uploading data through foreign key with crispy forms
I am uploading a photo by using a foreign key in forms but I didn't get any data in a database and I didn't get any errors. models.py from django.db import models class username(models.Model): name=models.CharField(max_length=100) phone=models.BigIntegerField() email=models.EmailField(max_length=100) class Profilephoto(models.Model): profile_photo = models.FileField(upload_to='media/') uname = models.ForeignKey(username, on_delete=models.CASCADE, null=True) forms.py from django import forms from .models import Profilephoto class DocumentForm(forms.ModelForm): class Meta: model = Profilephoto fields = ['profile_photo','uname'] view.py from django.shortcuts import render, redirect, HttpResponse from .models import username,Profilephoto from .form import DocumentForm def home(request): if request.method == 'POST': name = request.POST['name'] phone = request.POST['phone'] email = request.POST['email'] username(name=name,phone=phone,email=email).save() users = username.objects.latest('id') return render(request, 'home.html',{'usernames': users}) else: users = username.objects.latest('id') return render(request, 'home.html',{'usernames': users}) def data1(request,id): if request.method == 'GET': obj = username.objects.get(id=id) form = DocumentForm(instance=obj) return render(request, 'data1.html', {'form': form, 'usernames': obj}) elif request.method == 'POST': obj = username.objects.get(id=id) form = DocumentForm(request.POST, request.FILES, instance=obj) if form.is_valid(): form.save() return redirect('home') return render(request, 'data1.html', {'usernames': obj}) data1.html <form method="post" enctype="multipart/form-data"> {% csrf_token %} {{ form|crispy }} <div align="center">p <button type="submit" class="btn btn-primary">Submit</button> </div> </form> Please Help me Thanks in Advance -
caller does not have perission error when using gmail api
I get 500 server error on my django website thats running on google app engine. When I look at google app engine logs- I see the following error : googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission"> When I hard refresh the browser this error goes away. Then after some time it pops back up. Happens on mobile(firefox, safari), laptop (firefox,chrome). -
Django Website - Video can't show on safari but Chrome
I'm using Django + Vue.js to build a showcase website. All my video is working perfect on chrome. But safari and iPhone just not working. Server respond status 499? I used to use video from other domain and it works(I copy the video link which is depoloy on facebook cdn.) But it got url expired issue. so I download the video and use it. However that was the nightmare started. Video failed to load on safari. said Byte0-1? I have static video on my server. html: <div id="filters" class='filters row'> <section class='filter col s6 m4 l3' v-for="filter in filters_data" > <video muted='true' loop='true' autoplay> <source class="demo" v-if='filter.demo_replace == null' :src="filter.demo"> <source v-else class="replace_demo" :src="filter.demo_replace"> </video> <a :href="filter.link"> <div class='filter-info'> <img class='avatar' :src="filter.avatar" alt=""> <h3>[[filter.name]]</h3> </div> </a> </section> </div> rendered html <section class="filter col s6 m4 l3"> <video muted="muted" loop="loop" autoplay="autoplay"> <source src="/media/Poop Hat.mp4" class="demo"> </video> <a href="https://www.instagram.com/ar/3339649326099588"> <div class="filter-info"> <img src="https://scontent.fkhh1-1.fna.fbcdn.net/v/t39.10260-6/105918489_590471668536013_898732822726448347_n.png?_nc_cat=102&amp;_nc_sid=df6b83&amp;_nc_ohc=XB8y_mkhow8AX-Q_FyZ&amp;_nc_ht=scontent.fkhh1-1.fna&amp;oh=c6f78dab6ac3cc59f4c2bd7f522250f1&amp;oe=5F26E3D0" alt="" class="avatar"> <h3>Poop Hat</h3> </div> </a> </section> vue.js: var app = new Vue({ delimiters:['[[', ']]'], el: '#filters', http: { root: './root', headers: { 'Content-Range': 'bytes=0-3549043', 'Accept-Ranges': 'bytes', 'Content-Type': 'video/mp4' } }, data: { 'message':'hello', 'filters_data': [] }, mounted () { axios .get('filters/api/filters/') .then(response => { let data = response.data … -
I want to send emails using smtp, but I receive the error 'str' object has no attribute 'send_messages', Django
Down here I put the code, the code handles exceptions, but if you get that, throw the error 'str' object has no attribute 'send_messages' The view is this: from django.core.mail import send_mail, BadHeaderError from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, redirect from .forms import ContactForm def contactView(request): if request.method == 'POST': form = ContactForm() else: form = ContactForm(request.POST) if form.is_valid(): subject = form.cleaned_data['subject'] from_email = form.cleaned_data['from_email'] message = form.cleaned_data['message'] try: send_mail(subject, message, from_email, ['accros_93@hotmail.com']) except BadHeaderError: return HttpResponse('Invalid header found.') return redirect('success') return render(request, "email.html", {'form': form}) def successView(request): return HttpResponse('Success! Thank you for your message.') The html is: <div class="container"> <h1>Contactanos</h1> <form method="POST"> {% csrf_token %} {{ form.as_p }} <div class="form-actions"> <button class="btn btn-secondary" type="submit">Enviar</button> </div> </form> </div> I'm going to put the settings, but I know that it works, because I also send emails to change the password of the users and that works perfectly. Sure, all managed by django. But when I want to send emails this way from my website, it doesn't send anything. And as I said before, if I take the exceptions, throw the error of the title. Settings: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' DEFAULT_FROM_EMAIL = 'accros_93@hotmail.com' EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' EMAIL_HOST_PASSWORD … -
Django MultiUpload Gives AttributeError: 'list' object has no attribute 'name'
I am trying to use Django-MultiUpload to Upload Multiple files. But I am getting this error on submitting the form. I need to add multiple image to Meetup Model. Here is the code # model.py class MeetupImages(models.Model): meetup = models.ForeignKey(Meetup, verbose_name="Meetup") image = models.ImageField(upload_to="meetup/pictures/", null=True, verbose_name="image") # forms.py class AddMeetupForm(ModelFormWithHelper): images = MultiImageField(min_num=1, max_num=4) class Meta: model = Meetup fields = ('title', 'slug', 'date', 'time', 'meetup_location', 'venue', 'description', 'resources') widgets = {'date': forms.DateInput(attrs={'type': 'text', 'class': 'datepicker'}), 'time': forms.TimeInput(attrs={'type': 'text', 'class': 'timepicker'})} helper_class = SubmitCancelFormHelper helper_cancel_href = "{% url 'index' %}" def __init__(self, *args, **kwargs): self.created_by = kwargs.pop('created_by') self.leader = kwargs.pop('leader') super(AddMeetupForm, self).__init__(*args, **kwargs) def save(self, commit=True): """Override save to add created_by and meetup_location to the instance""" instance = super(AddMeetupForm, self).save(commit=False) print(self.cleaned_data) instance.created_by = SystersUser.objects.get(user=self.created_by) instance.leader = SystersUser.objects.get(user=self.created_by) if commit: instance.save() for each in self.cleaned_data['images']: MeetupImages.objects.create(image=each, meetup=instance) return instance -
How to add shufflejs for select tag
So I'm trying to achieve this look on shuffle.js page https://vestride.github.io/Shuffle/ and I want to do it with select and option tag and how can I do it ? I'm using python and django Here is my page: my index.html: <div class="container text-dark"> <select class="custom-select" id="type"> <option selected value="one">One</option> <option value="two">Two</option> <option value="three">Three</option> </select> <div class="card-deck one"> <div class="card"> <div class="card-body"> <h4 class="card-title">1</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">2</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">3</h4> </div> </div> </div> <div class="card-deck two"> <div class="card"> <div class="card-body"> <h4 class="card-title">4</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">5</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">6</h4> </div> </div> </div> <div class="card-deck three"> <div class="card"> <div class="card-body"> <h4 class="card-title">7</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">8</h4> </div> </div> <div class="card"> <div class="card-body"> <h4 class="card-title">9</h4> </div> </div> </div> This is my scrip tag: <script> $(document).ready(function () { $(".one").show(); $(".two").hide(); $(".three").hide(); $("#type").change(function () { var val = $(this).val(); if (val == "one") { $(".one").show(); $(".two").hide() $(".three").hide(); } else if (val == "two") { $(".one").hide(); $(".two").show(); $(".three").hide(); } else if (val == "three") { $(".one").hide(); $(".two").hide(); $(".three").show(); } }); }); </script> So when I choose the Two value in select tag it … -
Why do I get " * upstream prematurely closed connection while reading response header from upstream" error in Django?
So I have my Django application deployed with AWS EC2. I was trying to make some changes in the admin page, but then when I clicked an object it gave me "502 Bad Gateway" error. So I checked the log in my console, and found this: " *3 upstream prematurely closed connection while reading response header from upstream, blabla..." This is my first time deploying a project, and I barely have any knowledge on the server-side. What do you think could be the problem? Here are my configuration files. .config/nginx/mvp.conf (the name of my application is mvp) server { listen 80; server_name ## my server name ##; charset utf-8; client_max_body_size 128M; location / { uwsgi_pass unix:///tmp/mvp.sock; include uwsgi_params; } } .config/uwsgi/mvp.ini [uwsgi] chdir = /srv/hiim/ module = mvp.wsgi:application home = /home/ubuntu/myvenv/ uid = deploy gid = deploy socket = /tmp/mvp.sock chmod-socket = 666 chown-socket = deploy:deploy enable-threads = true master = true vacuum = true pidfile = /tmp/mvp.pid logto = /var/log/uwsgi/mvp/@(exec://date +%%Y-%%m-%%d).log log-reopen = true Thank you very much in advance. :) -
Price per date database design for hotel reservation system (store each date vs calcul it at runtime)
I have a requirement similar to this question, I need to store prices per date (prices change seasonally) and I have designed the bellow model: room_calendar : room_id : date : price: I must store dates up ~one year then run a query to get all prices for x ranges of date and sum() all prices. I think that approach is fine, but the downside is the volume of data in the database and the performance during queries when the database has many records. I have another second approach in mind: (calcul date at runtime) Yes I know! it may sound crazy db model: room_calendar : room_id : date_rule: <- store a dateutil rrule price: results: {'room_id': {'dates': <dateutil.rrule.rrule object at 0x7fa2a8e3bda0>, 'price': 100}} {'room_id': {'dates': <dateutil.rrule.rrule object at 0x7fa2a8e3bda0>, 'price': 150}} Then: dates_to_reserve = [datetime(2020, 1, 1), datetime(2020, 1, 2), datetime(2020, 1, 3)] room_price.objects.filter(date_rule__in=dates_to_reserve) Of course I would have to create a custom field that supports store dateutil.rrule and when I query it with __in hit the __contains__ method of dateutil.rrule sorry I can't express everything in a better way, SORRY FOR MY BAD ENGLISH Do you have something better than the first approach? Would there be any point … -
How to make django uploaded images to display in CloudFront frontend + Beanstalk Backend
I have created a backend django app using AWS Beanstalk, and a frontend reactjs app deployed using cloudfront (plus S3) I have a model in backend that does class EnhancedUser(AbstractUser): # some other attributes picture = models.ImageField(blank=True) my settings.py has MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '<my_elastic_beanstalk_domain>/media/' Since I'm using cloudfront, if i just set the MEDIA_URL to /media/, it would just append /media/ to my cloudfront url, so I have to hardcode it to my backend url and then, following the django docs, I added the static part to my urls.py urlpatterns = [ path('admin/', admin.site.urls), # some other urls ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Note that django doc does mention we can't use absolute url for MEDIA_URL, but I have no alternative solution at the moment When I upload my image, it doesn't get stored in the right place, but I cannot open it with the url. It returns a 404 saying the img's url is not part of urls list My question is: How do I set it up so I can display the image Since the images will be updated through users/admins, these will be stored in the EC2 instance created in beanstalk, so every time I … -
Auto populate hidden form fields in modelform
So my model, form, and view are working mostly. View works, and sending the email works. The "message" is saved but I cannot get the message_to and message_from to save. It is supposed to save the usernames. I can get everything to save, but cannot get the message saved to the database WITH the to and from usernames. I am trying to only have 1 field in the message. "Content". The to and from should be hidden and autopopulated. I appreciate any other set of eyes on this. Thank you. 'models.py' class Message(models.Model): message_content = models.TextField() message_to = models.ForeignKey(User, on_delete=models.CASCADE, related_name='message_to') message_from = models.ForeignKey(User, on_delete=models.CASCADE, related_name='message_from') date_created = models.DateTimeField(default=timezone.now) unread = models.BooleanField(default=True) 'forms.py' class MessageSellerForm(forms.ModelForm): class Meta: model = Message 'views.py' def ad_detail(request, *args, **kwargs): template_name = 'x_ads/ad_detail.html' ad = get_object_or_404(Ad, pk=kwargs['pk']) ad.increment_view_count() if request.method == 'POST': message_form = MessageSellerForm(data=request.POST) message_form.message_from = request.user.username message_form.message_to = ad.creator.username if message_form.is_valid(): subject = 'Message about your ad. ' + ad.title from_email = request.user.email to_email = ad.creator.email message = 'You have a message about one of your ads waiting for you!' send_mail(subject=subject, message=message, from_email=from_email, recipient_list=[to_email], fail_silently=False) messages.success(request, f'Your message has been sent.') message_form.save() return HttpResponseRedirect(request.path_info) else: message_form = MessageSellerForm() return render(request, template_name, {'ad': ad, … -
Where/when to trigger transactional emails in Django?
I have been trying to figure out the best place to put the send_mail() function in my Django app for transactional emails. I have researched a fair bit and have seen lots of suggestions all with their various pro's and con's so, I thought I'd ask the community for perspective. My goal is to send the following emails: Appointment Created, Appointment Modfied (e.g. the start time changed) and Appointment Cancelled. I am comfortable with how to send mails and have already got it configured with SMTP sending the mails no problem - my question relates to where is best to trigger the email. I have considered: Signals For creation, a post save signal with if kwargs['created']:seems like a good place. Seems like it is literally intended for this purpose. For modified or cancelled, I saw a lot of other questions suggesting that pre_save signals is a good way to check for change by try: original = sender.objects.get(pk=instance.pk) except sender.DoesNotExist: #object is new else: #check for attribute change & send mail etc However, it seems like a pre_save signal isn't a great choice to check for attribute changes - what if the save fails? Obviously, post_save is no good because the … -
Django returning chain of 2 different model querrysets
Here is my view serializer_class = SceneSerializer permission_classes = (permissions.IsAuthenticated,) def get_queryset(self): scene = Scene.objects.filter(user = self.request.user) for s in scene: test = Scene.objects.get(static_id = s.static_id) lights = test.light.all() temp = list(chain(scene, lights)) Here are my 2 serializers class LightSerializer(serializers.ModelSerializer): class Meta: model = Light fields = '__all__' class SceneSerializer(serializers.ModelSerializer): class Meta: model = Scene fields = '__all__' Here is my models class Light(models.Model): static_id = models.AutoField(primary_key=True) id = models.CharField(max_length=100, blank=True, null=True) company = models.CharField(max_length=25, blank=True, null=True) name = models.CharField(max_length=100, blank=True, null=True) label = models.CharField(max_length=100, blank=True, null=True) user = models.ForeignKey(User,on_delete=models.DO_NOTHING, related_name='userLights' ) def __str__(self): return "{0} - {1}".format(self.user,self.static_id) class Scene(models.Model): static_id = models.AutoField(primary_key=True) color = RGBColorField() title = models.CharField(max_length=100, blank=True, null=True) user = models.ForeignKey(User,on_delete=models.DO_NOTHING, related_name='userScenes' ) light = models.ManyToManyField(Light) def __str__(self): return "{0} - {1}".format(self.user,self.static_id) Goal is to return the complete objects of the scene and the lights attached to each scene. the chain is working correctly but when I return the chain I am getting -
How to create two users : Buyers/Sellers in Django
I'm working on a project on how to create Two users : buyers/Sellers for Web using Django as Backend. I've started the app "users" I've read the Django Documentation about CustomUserModel But Honestly don't know where to start from. Any Suggestions? -
Use sessions in django in order to check if someone is loged in or not
i tried to create a dictionary key in the request.session, i called key, so it looks like that: request.session['key']=1232354 , so when a user navigate into the website i check if they have the key or not in order to know if they are logged in, the question is I'm new to Django and i am afraid that there is some big cons in these idea that i cant see,like easily getting the web site hacked or something, if there is an expert out there please tell me what do you think about this one. -
get product attributes with its values
The table for product and product attribute is designed in a following way class Attribute(models.Model): name = models.CharField(max_length=30, unique=True) slug = models.SlugField(max_length=250, unique=True) class Meta: verbose_name = "Attribute" verbose_name_plural = "Attributes" def __str__(self): return self.name class AttributeValue(models.Model): name = models.CharField(max_length=250) value = models.CharField(max_length=100, blank=True, default="") slug = models.SlugField(max_length=255) attribute = models.ForeignKey( Attribute, related_name="values", on_delete=models.CASCADE ) class Meta: ordering = ("sort_order", "id") unique_together = ("slug", "attribute") def __str__(self) -> str: return self.name def get_ordering_queryset(self): return self.attribute.values.all() class ProductAttribute(models.Model): product = models.ForeignKey(Product, related_name="attribute_product", on_delete=models.CASCADE, null=True) attribute = models.ForeignKey( AttributeValue, related_name="attribute_value_product", on_delete=models.CASCADE ) class Meta: ordering = ("sort_order",) verbose_name = "Product Attribute" verbose_name_plural = "Product Attributes" def __str__(self): return f'{self.product.name} - {self.attribute.name}' def get_ordering_queryset(self): return self.product.attribute_product.all() class ProductTypeAttributeValue(models.Model): product_type = models.ForeignKey(ProductType, on_delete=models.CASCADE) attribute_value = models.ForeignKey(AttributeValue, on_delete=models.CASCADE) def __str__(self): return f'{self.product_type.name} - {self.attribute_value.value}' I can get the list of attributes for a particular product by doing attribute = models.ProductAttribute.objects.filter(product=product) I can get the values both attribute values and the name of attribute for a in attribute: print(a.attribute.name, a.attribute.attribute.name) this will give me Small Size Medium Size But i have no idea on how i can return in the following way attribute [ { name: color, slug: color values [ { id: 1, name: R, … -
How to run Twisted code inside an AsyncConsumer of django channels?
The django channels' runworker command is used to start background workers. I have an AsyncConsumer that connects to a Twisted service through a Twisted's UNIX endpoint and uses Twisted's AMP protocol for communication. But I am not able to run that twisted code because the runworker command runs an asyncio's loop different to the one used by daphne to install Twisted's asyncio reactor. Here is where the asyncio reactor is installed, and here is where the runworker command starts a different loop. -
How do I make my django web app extremely secure?
I am creating a clone of google forms in Django and was wondering if the community could give suggestions regarding the security of this web app. What should I do to make this web app extremely secure, from the Django standpoint? Thanks! -
Restricting POST request access to only from HTML Form
In my Django app, I have an html page with a button, "Add user". This add user button makes a post request to /api/add-user. How can I restrict it so that not anyone can just ping /api/add-user so that you can only do it from the form submission in the html page? Thanks! -
Click on button not updating view in django
I have a view with a list of tasks and tried to do simple task allocation on click but it is not working. Could you please support? I see in my console sth like that: "POST /task/allocate HTTP/1.1" 302 0. Thank you. L model: class Task(models.Model): name = models.CharField(max_length=248) note = models.TextField(blank=True, null=True) priority = models.NullBooleanField(blank=True, null=True) status = models.IntegerField(choices=TASK_STATUS, default=TASK_STATUS[0][0]) placed_date = models.DateField(auto_now=True) due_date = models.DateTimeField(blank=True, null=True) completed = models.BooleanField(default=False) completed_date = models.DateField(blank=True, null=True) created_by = models.ForeignKey( User, null=True, blank=True, related_name="hana_created_by", on_delete=models.CASCADE) assigned_to = models.ForeignKey(User, null=True, blank=True, related_name="hana_assigned_to", on_delete=models.CASCADE) urls: path('excel_table', ex_views.ExcelTableView.as_view(), name = "excel-table"), path("task/add", ex_views.TaskAddView.as_view(), name="task-add"), path("task/<int:task_id>/", ex_views.TaskDetailView.as_view(), name="task-detail"), path("task/<int:pk>/edit", ex_views.TaskEditView.as_view(), name="task-update"), path("task/allocate", views.task_allocator, name="task-allocate"), views: def task_allocator(request): tasks = Task.objects.filter(assigned_to=None) if request.method == "POST": if request.POST.get("task_allocate"): for t in tasks: t.assigned_to = random.choice(User.objects.all()) if t.assigned_to != None: t.status = 1 t.save() messages.success(request, "Tasks succesfully allocated to your employees. Check status!") return redirect(reverse("excel-table")) return redirect(reverse("excel-table")) return render(request, "hana/excel_view.html", locals()) template: <form method="POST" action="{% url "task-allocate" %}" role="form" class="d-inline"> {% csrf_token %} <div style="display:inline;"> <button class="btn btn-info btn-sm" type="submit" name="task_allocate"> Task Allocate </button> </div> </form> -
Return one-to-one model information with model in Django
I have 2 pretty basic Django models: User and UserProfile. I am using the REST framework and would like to include profile information when retrieving all users. I have searched the internet but was not able to find the answer. This is what I am currently trying: User.objects.all().prefetch_related('userprofile') -
Dealing with django settings.py file after adding to .gitignore?
I added the settings.py file of my django project to .gitignore before pushing to Github. Now when I open the project in PyCharm, the file name settings.py is highlighted in a kind of lime green color. Is this telling me something else or are there any other implications for this other than having added it to .gitignore, maybe in terms of later on when I want to put my site on a remote server for instance? I will probably push new commits to Github in the future so I had planned to keep it in .gitignore, but would this present any other problems?