Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
add product to cart[django-rest-framework]
I drew the model where there is Cart and CartItem table. when developing the views, I got stuck on how to store the product and on which table should i store it. I searched for the cart process but nowhere i found the resource on adding the product to both session and cart table. Below is the model for the cart models.py class Cart(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, on_delete=models.CASCADE) timestamp = models.DateTimeField(auto_now_add=True, auto_now=False) updated = models.DateTimeField(auto_now_add=False, auto_now=True) total = models.DecimalField(max_digits=50, decimal_places=2, default=0.00) class CartItem(models.Model): cart = models.ForeignKey(Cart, on_delete=models.CASCADE) item = models.ForeignKey(ProductVariation, on_delete=models.CASCADE) quantity = models.PositiveIntegerField(default=1) serializers.py class CartSerializer(serializers.ModelSerializer): items = ProductVariationSerializer(many=True) class Meta: model = Cart fields = '__all__' class CartItemSerializer(serializers.ModelSerializer): class Meta: model = CartItem fields = '__all__' views.py class CartAPI(APIView): serializer_class = serializers.CartSerializer def get(self, request, format=None): reply = {} try: carts = Cart.objects.all() reply['data'] = self.serializer_class(carts, many=True).data except Cart.DoesNotExist: reply['data'] = [] return Response(reply, status.HTTP_200_OK) def post(self, request, format=None): cart = Cart(request) product_id = request.data.get('product', None) quantity = request.data.get('quantity', None) try: product = ProductVariation.objects.get(id=product_id) except ProductVariation.DoesNotExist: pass # stuck here now Here is the full source code. https://gist.github.com/MilanRgm/02b71d10da642788c06b088032446904. -
How to add any number of users to the same table in postgres?
I am using postgres and django and I have a table defined below in postgres Column | Type | Modifiers ---------------------+------------------------+----------- id | integer | context_name | character varying(100) | context_description | character varying(100) | context_priority | character varying(1) | users | integer | Below is the associated model in django class Contexts(models.Model): context_name = models.CharField(max_length=50) context_description = models.TextField() context_priority = models.CharField(max_length=1) users = models.PositiveIntegerField(null=False) Note: I cannot run makemigrations since I have some issues in the settings.So I create the table manually in postgres and define the associated model in django. Now this table is basically a group context_name which can have many users.So I receive a JSON request and add the user to the table.Below is the JSON { "user" : 5, "action" : "add", "context_name": "network debug", "context_description" : "Group for debugging network issues", "context_priority": "L" } Here is the code that handles the operation @csrf_exempt def context_operation(request): user_request = json.loads(request.body.decode('utf-8')) if request.method == "POST": try: if user_request.get("action") == "add": conv = Contexts.objects.create( context_name=user_request.get("context_name"), context_description=user_request.get("context_description"), context_priority=user_request.get("context_priority"), users=user_request.get("user") ) #print(conv.users) except Exception as e: print("Context saving exception", e) return HttpResponse(0) return HttpResponse(1) Now when I run this code and a request comes in, I can save the user … -
Django REST Framework full serialization for personal data
What is the proper way to let authenticated users access their own private information, while other users would only be able to access the public information ? I tried creating 2 serializers: from rest_framework import serializers from app.models import User class PublicUserSerializer(serializers.HyperlinkedModelSerializer): image_url = serializers.ImageField(use_url=False) class Meta: model = User fields = ( 'pk', 'first_name', 'last_name', 'image_url', ) lookup_field = 'pk' extra_kwargs = { 'url': {'lookup_field': 'pk'} } class PrivateUserSerializer(PublicUserSerializer): class Meta: fields = ( 'pk', 'first_name', 'last_name', 'image_url', 'details', 'email', ) But now, I'm wondering how should I update the viewset to choose the proper serializer. from rest_framework import viewsets from app.authentication import FirebaseAuthentication from app.models import User from app.serializers import PublicUserSerializer, PrivateUserSerializer class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = PublicUserSerializer lookup_field = 'pk' authentication_classes = (FirebaseAuthentication,) I can override the get_serializer or get_serializer_class, but how can I access my user and check permissions within this method ? -
Best practice for permissions/filters in Django Rest Framework
I'm new in DRF and can't understand the best way to give acess only to information owned by user. I have a view: class InvoiceAPIView(generics.ListAPIView): serializer_class = InvoiceSerializer permission_classes = [permissions.IsAuthenticated] def get_queryset(self): return Invoice.objects.filter(company__user=self.request.user) Is it good enough to use filter method or maybe I should add custom permission or even go to serialization. Thanks! -
How to efficiently retrieve value of an attribute at a given time in Django Reversions?
I am currently using django-reversion to track a model Account which has a field total_spent. Overtime this field gets updated whenever an accounts spends money. My goal is to retrieve the value of total_spent between X and Y, which are both datetime instances. How can I do so efficiently? -
Processing an input and outputting an answer with django
I am learning Django and I am trying to make a very simple widget-type thing where a user inputs a number, the view function checks if it is even and outputs True or False on the same page. I realize there is better ways to do, such as with javascript, but this is just so I understand how to do something like this with Django. I have no idea how to do this and I’ve tried several things but nothing has come close to working so far. Any help would be appreciated. -
Stripe payment form not working on Django, cannot retreive a token
I am trying to add a payment page to my site, I copied the code from the stripe documentation, however when I press on the pay button nothing happens. Through debugging, the returned token is empty. The thing is when I tried the code in JsFiddle it worked, but when I add it to my app, there is no response, the console is empty so I'm lost in troubleshooting. Here is the html file: {% block content %} <form method="POST" id="payment-form" > {% csrf_token %} <input type="hidden" name="token" /> <div class="group"> <label> <span>Card</span> <div id="card-element" class="field"></div> <div id="card-errors" role="alert"></div> </label> </div> <div class="group"> <label> <span>Name</span> <input id="name" name="name" class="field" placeholder="Jane Doe" /> </label> </div> <div class="group"> <label> <span>Address</span> <input id="address-line1" name="address_line1" class="field" placeholder="77 Winchester Lane" /> </label> <label> <span>Address (cont.)</span> <input id="address-line2" name="address_line2" class="field" placeholder="" /> </label> <label> <span>City</span> <input id="address-city" name="address_city" class="field" placeholder="Coachella" /> </label> <label> <span>State</span> <input id="address-state" name="address_state" class="field" placeholder="CA" /> </label> <label> <span>ZIP</span> <input id="address-zip" name="address_zip" class="field" placeholder="92236" /> </label> <label> <span>Country</span> <input id="address-country" name="address_country" class="field" placeholder="United States" /> </label> </div> <button type="submit">Pay $25</button> <div class="outcome"> <div class="error"></div> <div class="success"> Success! Your Stripe token is <span class="token"></span> </div> </div> </form> {% endblock %} {% block body_scripts … -
Handling invalid forms with ajax and django?
It seems I am bit stuck when handling forms with AJAX. Specifically when the form is invalid. I am not sure what to return in form_invalid method. Let's set a simplistic example to show you what I am talking about: # models.py from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Manufacturer(models.Model): name = models.CharField(max_length=264) class Product(models.Model): date = models.DateField() time = models.TimeField() name = models.CharField(max_length=264) manufacturer = models.ForeignKey(Manufacturer, on_delete=models.CASCADE) price = models.DecimalField(max_digits=5, decimal_places=2) user = models.ForeignKey(User, default=1, on_delete=models.CASCADE) # forms.py from django import forms from .models import Product class AddNewProductForm(forms.Model): class Meta: model = Product fields = "__all__" # views.py from django.views.generic.edit import CreateView from django.contrib.auth.mixins import LoginRequiredMixin from .models import Product from .forms import AddNewProductForm class MyProductsView(LoginRequiredMixin): model = Product template_name = "products/my_products.html" form = AddNewProductForm def get_context_data(self, **kwargs): context = super(MyProductsView, self).get_context_data(**kwargs) context["my_products"] = Product.objects.filter(user=self.request.user).select_related().order_by("-date") context["form"] = self.form return context class ProductCreateView(LoginRequiredMixin, CreateView): model = Product template_name = "products/my_products.html" form_class = AddNewProductForm() def form_valid(self, form): obj = form.save(commit=False) obj.user = self.request.user obj.save() ................... # return HttpResponseRedirect("/my-products/") def form_invalid(self, form): ........ ........ # urls.py from django.conf.urls import url from . import views app_name = "products" urlpatterns = [url(r'^my-products/$', views.MyProductsView.as_view(), name="my_products"), url(r"^product/new/$", views.ProductCreateView, name="add_new_product")] # my_products.html … -
Django reddit clone subreddit support
I'm building a project site similar to reddit with the ability to make your own community that people can post comments in after joining, basically like adding subreddit support. Here is an example of the basic "community" model, containing just a name, banner for a picture, and the creation date: class Community(models.Model): name = models.CharField(max_length=20) banner = models.ImageField(upload_to="communityBanners", blank=True) creation_date = models.DateTimeField(default=datetime.now) I'd like users with special privileges to be able to create communities, name them, and also delete them. What is the best way to do this using class-based views? I'd also like users who join to be prompted with a page displaying a list of communities that they can join. Ideally, it would be like when you sign up for Quora and immediately can select topics you are interested in from the displayed options (in a tile-based format). I understand how to create a queryset and populate a form with the community models I have stored in the db, but I'm not sure how to actually take form input with some blanks left (unselected communities) and process it so that I store only the selected topics. -
how to redirect back 2 pages in django
I know you can go back to the previous page by redirecting wiht the following: return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/')) How can I go back 2 pages? Is it something like: '../' or '//' ? -
Divide index.html in two divs django
I would like to divide index.html in two div's. The first div with class "contact-div" and second div with class "game-div". With the below code I am able to just assign the classes to the fields but not to the entire div. How can I make this possible. models.py class Customer_Details(models.Model): name = models.CharField(max_length=200,null=True) contact = models.IntegerField() loyalty = models.BooleanField() address = models.CharField(max_length=200,blank=True, null=True) preferred_games = models.CharField(max_length=200,blank=True, null=True) highest_score1 = models.CharField(max_length=200,blank=True, null=True) highest_score2 = models.IntegerField(blank=True, null=True) medals1 = models.IntegerField(blank=True, null=True) medals2 = models.IntegerField(blank=True, null=True) index.html <form class="" method="post"> {% if form %} {% csrf_token %} {{ form.as_p }} {% endif %} <input type="submit" value="submit"> </form> forms.py class Meta: model = Customer_Details widgets = { 'name': forms.TextInput(attrs={'class':'contact-div'}), 'contact': forms.NumberInput(attrs={'class':'contact-div'}), 'loyalty': forms.TextInput(attrs={'class':'contact-div'}), 'address': forms.TextInput(attrs={'class':'contact-div'}), 'preferred_games': forms.TextInput(attrs={'class':'game-div'}), 'highest_score1': forms.TextInput(attrs={'class':'game-div'}), 'highest_score2': forms.TextInput(attrs={'class':'game-div'}), 'medals1': forms.NumberInput(attrs={'class':'game-div'}), 'medals2': forms.NumberInput(attrs={'class':'game-div'}), -
Writing a Django migration that adds a unique field based off another field
I have a model SessionCategory with a unique field name. Certain pivotal instances of this model are referenced by name; the only problem is that name is also editable in our internal dashboard so that a user could inadvertently 'break' these references by changing the name. To solve this, I'd like to create a new field name_slug which is a slugified version of name, also with a unique constraint. I've tried to do the following: from django.db import models from django.utils.text import slugify from django.db.models.signals import pre_save from django.dispatch import receiver class SessionCategory(models.Model): name = models.CharField(max_length=255, unique=True) name_slug = models.CharField(max_length=255, unique=True) @receiver(pre_save, sender=SessionCategory) def create_name_slug(sender, instance, **kwargs): if not instance.name_slug: instance.name_slug = slugify(instance.name) where I've added the name_slug unique field. The problem is that if I try to python manage.py makemigrations, I get the following prompt: (venv) Kurts-MacBook-Pro-2:lucy-web kurtpeek$ python manage.py makemigrations You are trying to add a non-nullable field 'name_slug' to sessioncategory without a default; we can't do that (the database needs something to populate existing rows). Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit, and let me add a default … -
Django detect changes to multiple fields
I'm using some javascript libraries that won't let me pass in self.full_name created using def full_name(self): Wondering how I should go about updating a full_name field based on changes to any of the 3 name fields. class Profile(models.Model): first_name = StringProperty(max_length=25) middle_name = StringProperty(max_length=25) last_name = StringProperty(max_length=50) full_name = StringProperty(max_length=100) # lots of Icelanders have the same first and last name... full_name_includes_middle_name = BooleanProperty(default=False) I've seen some recommendations about using a save signal and some about using a property. These fields will likely be consumable over public API. -
CSRF Token setting and passage for Angular 6 http call to Django Endpoint
I am making a POST call to a Django endpoint from and Angular 6 app. What is the current preferred method for gathering, setting and passing the required CSRF token/cookie? Right now the error message that I'm getting says: Forbidden (403) CSRF verification failed. Request aborted. And the code trying to make the HTTP call is simply: export class EmailService { constructor(private http: HttpClient) {} sendMailgunContactMessage(subject, name, email, policyNumber, message) { const body = { Subject: subject, Name: name, Email: email, PolicyNumber: policyNumber, Message: message }; return this.http.post(SharedService.contactEmailUrl, body); } } -
Django Rest Framework model object returns stored value of a field with choices
I have a project with Django Rest Framework and I have a complex ViewSet that uses several models and serializers to compound a large and complex json. Everything works fine, but I notice that HotelSerializer, that is a ModelSerializer, is returning the stored value of field category, instead of the human readable value of its model choices. This is the model: class Hotel(models.Model): ONE_STAR = '*' TWO_STARS = '**' THREE_STARS = '***' FOUR_STARS = '****' FIVE_STARS = '*****' GRAND_TOURISM = 'GRAND_TOURISM' NA = 'NA' SPECIAL = 'SPECIAL' ECO = 'ECO' BOUTIQUE = 'BOUTIQUE' HOTEL_CATEGORY_CHOICES = ( (ONE_STAR, _('*')), (TWO_STARS, _('**')), (THREE_STARS, _('***')), (FOUR_STARS, _('****')), (FIVE_STARS, _('*****')), (GRAND_TOURISM, _('Grand Tourism')), (NA, _('NA')), (SPECIAL, _('Special')), (ECO, _('Eco-Hotel')), (BOUTIQUE, _('Boutique-Hotel')) ) company = models.OneToOneField(Company, on_delete=models.CASCADE, primary_key=True, verbose_name=_('Company')) code = models.CharField(max_length=10, verbose_name=_('Code')) zone = models.ForeignKey(Zone, on_delete=models.PROTECT, related_name='hotels', verbose_name=_('Zone')) category = models.CharField(max_length=20, choices=HOTEL_CATEGORY_CHOICES, verbose_name=_('Category')) capacity = models.IntegerField(verbose_name=_('Capacity')) position = models.DecimalField(max_digits=11, decimal_places=2, default=0.00, verbose_name=_('Position')) in_pickup = models.BooleanField(default=False, verbose_name=_('In pickup?')) is_active = models.BooleanField(default=True, verbose_name=_('Is active?')) latitude = models.FloatField(null=True, blank=True, verbose_name=_('Latitude')) longitude = models.FloatField(null=True, blank=True, verbose_name=_('Longitude')) This is the serializer: class HotelSerializer(serializers.ModelSerializer): company = CompanySerializer() class Meta: model = models.Hotel fields = ('company', 'code', 'zone', 'category', 'capacity', 'position', 'in_pickup', 'is_active', 'latitude', 'longitude') depth = 4 def __init__(self, *args, … -
Manual/Scheduled reports from Database to Excel/pdf in Django
I have a small django time attendance application which customers are using (about 7-10 customers with 100-150 users per customer). I wish to provide them: 1) an option to manually download the report as per their chosen dates and format. Can I use any existing django package and implement it in my app so that I do not have to reinvent the wheel ? 2) Scheduled reports to their Email address. I have done it right now by running scheduled python files (using excel writer) but adding new report and adding/removing columns is tremendously time consuming. Please advise the best way to achieve both of the above. -
Django Template full width CSS
i would like to put all of my Category elements side by side but for some reason i get two elemnts beside each-other and after that a new row starts and on the left i still got a lot of space... css .category { float: left; width: 40%; margin-right: 3.33333%; margin-bottom: 3.33333%; padding: 15px; text-align: center; box-sizing: border-box; background: radial-gradient(white, white, whitesmoke); border-radius: 3%; } .categorycover { height: 100px; -webkit-box-reflect: below 8px -webkit-gradient(linear, right top, right bottom, from(transparent), to(rgba(255, 255, 255, 0.2))); } template {% block content %} {% for category in object_list %} <div> <span class="category"> <img class="categorycover" src="/media/{{ category.cover }}"> <h1>{{ category.title }}</h1> <p>{{ category.post_set.count }}Posted element(s)</p> <p>{{ category.description|readmore:10|linebreaksbr}}</p> </span> </div> {% endfor %} {% endblock %} do i have to put a div container with 100% of the page width on it? Any hint would be helpful. -
Applying css styles to sendgrid email python django?
I am learning to use the sendgrid api with django python. For now, I can successfully send emails but I would like to make the email more appealing and apply some css styles. I looked online for some help but couldn't find any. Can someone please suggest me how i should go about it ? This is what i tried so far def sendemail(sender,recipient,subject,content,url): sg = sendgrid.SendGridAPIClient(apikey="*****") from_email = Email(sender) to_email = Email(recipient) subject = subject content = Content("text", content+url) mail = Mail(from_email, subject, to_email, content) response = sg.client.mail.send.post(request_body=mail.get()) print(response.status_code) print(response.body) print(response.headers) -
Automatically Display POST data Django
Goal: Display POST data on Django-based website as it is received via webhooks from Github If possible, to continually append new events one after the other on the website Where I'm at: I have the github POST data, I can print it on the terminal, but cannot display on my html page. Currently a beginner with Django but any advice would be much appreciated! Here's a peak at my views.py: @csrf_exempt def home(request): if request.method == "POST": event = request.META['HTTP_X_GITHUB_EVENT'] body = json.loads(request.body)[event] context = { 'event': event, 'body': body, } print(context) return render(request, 'home.html', context) return render(request, 'home.html') Here is my home.html {% extends "base.html" %} {% block content %} <div> <h3><b>fudge</b></h3> {% if event %} <p>Event: {{ event }}</p> <p>Body: {{ body }}</p> {% endif %} </div> {% endblock %} Ideally, I'd like to re-render my home.html page as soon as a POST is received, but don't know how to keep it persistent. As for my urls.py, I only have ^$, views.home, name='home'. Let me know if you'd like to see anything else! -
While trying to serialize child and parent nodes of a model, I get RecursionError
I am trying to make a comment model that supports an arbitrary number of replies. I am using Django Rest Framework and for comment trees I am using django-treebeard. This is my model code: class Comment(MP_Node): paylasan = models.ForeignKey( to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE) soru = models.ForeignKey( to=Soru, related_name="comments", on_delete=models.CASCADE) metin = models.TextField() upvote = models.PositiveIntegerField(default=0) downvote = models.PositiveIntegerField(default=0) created = models.DateTimeField(auto_now_add=True) node_order_by = ['upvote'] def __unicode__(self): return self.metin This is my view which is simple: class Comments(generics.ListAPIView): queryset = Comment.objects.all() serializer_class = CommentSerializer This is my serializer: class CommentSerializer(serializers.ModelSerializer): paylasan = serializers.StringRelatedField() children = serializers.SerializerMethodField( read_only=True, method_name="get_children_nodes" ) parent = serializers.SerializerMethodField( read_only=True, method_name="get_parent_nodes" ) class Meta: fields = ( "id", "metin", "soru", "paylasan", "children", "parent", "upvote", "downvote", "created" ) model = Comment def get_children_nodes(self, obj): child_queryset = obj.get_descendants() return CommentSerializer(child_queryset, many=True).data def get_parent_nodes(self, obj): try: parent_id = obj.get_parent().id except AttributeError: return {} parent_queryset = Comment.objects.filter(id=parent_id) return CommentSerializer(parent_queryset, many=True).data When I run a test in ipython shell, I get an error saying RecursionError: maximum recursion depth exceeded while calling a Python object which eventually points to these lines in serializer: ~/Python/webapp/soruweb/serializers.py in get_children_nodes(self, obj) 82 def get_children_nodes(self, obj): 83 child_queryset = obj.get_descendants() ---> 84 return CommentSerializer(child_queryset, many=True).data 85 86 def get_parent_nodes(self, obj): The … -
How to implement favourites in django?
I have a list of players in my database and I want to allow users to choose their favourite players which will be stored in that user's database. Is there any simple way to do this in django? -
Add child html to Django Form Input?
Currently I have a form in my web app rendering as (with classes and names removed for simplicity): {% for field in form %} <div> {{ form }} <img src="{{ field.field.img }}"> </div> {% endfor %} field.field.img is just a path to the required image. This then becomes: <div> <input ... /> <img src="#"> </div> What I would like to have is for it to be: <div> <input ...> <img src="#"> </input> </div> Is there a way I can have the image be a child of the input, rather than being placed alongside it? -
django.db.utils.IntegrityError: duplicate key value violates unique constraint "django_migrations_pkey"
I have a Django model SessionType which is defined similar to the following: from django import models class SessionType(models.Model): class Meta: ordering = ['title'] title = models.CharField(max_length=255, unique=True) At first, the unique=True constraint was not there; I've just added it, and run python manage.py makemigrations. This resulted in the following migration (0163_auto_20180627_1309.py): # -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-06-27 20:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lucy_web', '0162_merge_20180531_0009'), ] operations = [ migrations.AlterField( model_name='sessiontype', name='title', field=models.CharField(max_length=255, unique=True), ), ] However, when I try to python manage.py migrate, I get the following error: django.db.utils.IntegrityError: duplicate key value violates unique constraint "django_migrations_pkey" DETAIL: Key (id)=(326) already exists. Here are the commands and the full traceback: (venv) Kurts-MacBook-Pro-2:lucy-web kurtpeek$ python manage.py makemigrations Migrations for 'lucy_web': lucy_web/migrations/0163_auto_20180627_1309.py - Alter field title on sessiontype (venv) Kurts-MacBook-Pro-2:lucy-web kurtpeek$ python manage.py migrate Operations to perform: Apply all migrations: admin, auditlog, auth, contenttypes, defender, lucy_web, oauth2_provider, otp_static, otp_totp, sessions, two_factor Running migrations: Applying lucy_web.0163_auto_20180627_1309...Traceback (most recent call last): File "/Users/kurtpeek/Documents/Dev/lucy2/lucy-web/venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) psycopg2.IntegrityError: duplicate key value violates unique constraint "django_migrations_pkey" DETAIL: Key (id)=(326) already exists. The above exception was the … -
control led lights with mqtt from django
I've been trying to use mqtt in django. Im trying to build a web interface for my mqtt connection, in which i can turn on and off led lights on the raspberry pi. For the mean time, it has worked from the terminal, I am able to send "on" and "off" messages where the lights turn on and off. But the main goal is to make it user friendly. Any tips on how to do it ? I appreciate your answers. -
django loops in html not going in order
I have this block of code in my html template: <main role="main"> <div class="container"> <h1 class="text-center pt-5">welcome to my blogs</h1> <br> <br> <h2>my latest blog</h2> <hr/> {% for e in allblogs.all %} <a href="{% url 'blog_detail' e.id %}"><h1>{{ e.title }}</h1></a> <h6>{{ e.pretty_time }}</h6> <img class="img-fluid" height="400" width="300" src="{{ e.image.url }}"> <p>{{ e.summary }}</p> {% endfor %} </div> </main> how come I got the output /blog/2 displayed first then /blog/1 ? aint e loops from 1 first?? I couldn't find the answer, please help on possible solution <a href="/blog/2/"><h1>second blog</h1></a> <h6>Jun 26 2018</h6> <img class="img-fluid" height="400" width="300" src="/media/image/ben-tatlow-635718-unsplash.jpg"> <p>second blog with new picturefirst blog pictures in something is fun to learn, but it takes lots of t</p> <a href="/blog/1/"><h1>first blog</h1></a> <h6>Jun 26 2018</h6> <img class="img-fluid" height="400" width="300" src="/media/image/aaron-burden-649463-unsplash.jpg"> <p>first blog pictures in something is fun to learn, but it takes lots of time, at same time I would ha</p> <a href="/blog/3/"><h1>third blog</h1></a> <h6>Jun 26 2018</h6> <img class="img-fluid" height="400" width="300" src="/media/image/caleb-lucas-434609-unsplash.jpg"> <p>even more pictures first blog pictures in something is fun to learn, but it takes lots of time, at s</p>