More like vim and vs code are the best editors On Sun, 2 Sep 2018 06:51 RONAK JAIN, <[email protected]> wrote:
> Atom is best editor. > > On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, <[email protected]> > wrote: > >> >> Hi to all, >> Which is the best editor for django framework in Ubuntu os >> 18.04 >> >> Get Outlook for Android <https://aka.ms/ghei36> >> >> >> >> >> On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN" < >> [email protected]> wrote: >> >> Namaste !! >>> >>> Dear , >>> >>> I have two models categories and Project. >>> >>> created like that : >>> >>> class Category(models.Model): >>> categorys = models.ManyToManyField('Category',blank=True) >>> name = models.CharField(max_length=100) >>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True) >>> updated_at = models.DateTimeField(auto_now=True) >>> >>> >>> >>> class Meta: >>> verbose_name_plural = "Categories" >>> >>> def __str__(self): >>> return self.name >>> >>> def __unicode__(self): >>> return self.categorys >>> >>> class Project(models.Model): >>> categorys = models.ManyToManyField('Category',blank=True) >>> name = models.CharField(max_length=100) >>> description = models.CharField(max_length=100) >>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True) >>> updated_at = models.DateTimeField(auto_now=True) >>> photo = models.ImageField(upload_to="pictures") >>> >>> >>> def __str__(self): >>> return self.name >>> >>> def __unicode__(self): >>> return self.categorys >>> >>> *and Views I did here :* >>> >>> *from web.models import Category,Project* >>> >>> class Portfolio(TemplateView): >>> template_name = "web/protfolio.html" >>> >>> def post(self, request, *args, **kwargs): >>> context = self.get_context_data() >>> return super(TemplateView, self).render_to_response(context) >>> >>> def portfolio(request): >>> context = RequestContext(request) >>> # Project_list = Project.objects.order_by('-likes')[:3] >>> # context_dict = {'Project': project_list} >>> # return render(template_name, context_dict, context >>> brand_list = Category.objects.all() >>> return render(template_name, {'brand_list' : brand_list}, >>> context) >>> >>> *I need correct relationship both I mean project and categories. How can >>> I do correct here ? * >>> Note : I attached picture please analyse briefly. >>> >>> How to do approch html page and I want the html(view) page should >>> load from our db. >>> please give me quickly answer. >>> How can i do ? >>> >>> >>> Thanks >>> Ronak >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com >> <https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CA%2BAqMUcMUft6Wfa_YUzhRshp4vDF4fT5UxfUfUh2XeazH%2BxSxQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CA%2BAqMUcMUft6Wfa_YUzhRshp4vDF4fT5UxfUfUh2XeazH%2BxSxQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABkm6MWchCmrznG6DuHEpsSWF6b7mDxiMoHopmYovXDbSg-YXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

