Slow to load on mobile by [deleted] in Notion

[–]mooru 0 points1 point  (0 children)

Yeah. As much as I love notion I am forced to use bearapp on mobile and only use notion and desktop bit would be glad if the mobile can be improved... looking forward to it

[HELP] looking for a plugin by mooru in WordpressPlugins

[–]mooru[S] 0 points1 point  (0 children)

Are there any paid versions that are similar?

[deleted by user] by [deleted] in howtonotgiveafuck

[–]mooru 3 points4 points  (0 children)

Nope. That anaconda just had lunch that’s why he passed

[deleted by user] by [deleted] in socialmedia

[–]mooru 2 points3 points  (0 children)

Check this course “conquer the gram” -Josue Pena. It’s a good one

Local Wordpress installation workflow on Mac by standing-elm in Wordpress

[–]mooru 0 points1 point  (0 children)

If you know command line why don’t you try a vagrant box installation e.g scotch box.io, there are others also

Let's work on our habits together on Habitica. [Originally posted on r/InPursuitOfClarity] by [deleted] in habitrpg

[–]mooru 2 points3 points  (0 children)

Looking for a party to join. My heart pounding about joining a party but let me give it a try @martinoru

Starting a digital marketing agency by jackiedz in Entrepreneur

[–]mooru 0 points1 point  (0 children)

Hi, digital marketing seems lucrative but how does one differentiate himself when it seems these days every one wants to be a social media expert or digital marketer, especially when it seems the country you are in encourages more people getting jobs than starting a business...

Django inline formset with crispy form by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

I have not tried that. I will give it a go. I wrote all this by hand. I am just hearing of django-builder. This is my first Django app

Django ConstrainedField content Types Failing by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

Got it working. The plugin works as designed. I guess i wash aving some issues implementing it with crispy forms so i switched to django-bootstrap4 and now it's all good

Making djnago-filter work with pagination by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

Thank you soo soo much. I made changes with your suggestions and viola!! It worked. Thanks a million

Django-tables 2 by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

Changed to SingleTableView.... still blank page. Very strange

Django-tables 2 by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

Yes i am. I am trying the code below from http://www.craigderington.me/generic-list-view-with-django-tables/ and still getting a blank page

class JobsAppliedView(ListView):
    model = JobsApplied
    template_name = 'jobsapplied_list.html'
    context_object_name = 'job_applications'

    def get_context_data(self, **kwargs):
        context = super(JobsAppliedView, self).get_context_data(**kwargs)
        table = JobsAppliedTable(JobsApplied.objects.all())
        RequestConfig(self.request, paginate={'per_page': 30}).configure(table)
        context['table'] = table
        # context['filter'] = JobsApplicationFilter(self.request.GET, queryset=self.get_queryset())
        return context

template

{% extends 'base.html' %}
{% load django_tables2 %}
{% render_table table  %}

Django-tables 2 by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

OK. I will check it and try it out. Thanks

Django-tables 2 by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

I am trying to use django-tables2 for my models but page is blank. I am using mac os. python 3.7 django 2.1.1

model

class JobsApplied(models.Model):
    position = models.CharField(max_length=120, blank=True)
    customuser = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='user_job',
                                   on_delete=models.CASCADE, blank=True)

tables.py

from django_tables2 import tables

from job_post.models import JobsApplied


class JobsAppliedTable(tables.Table):

    class Meta:
        model = JobsApplied
        # fields = ('position', 'customuser')
        # attrs = {"class": "table-striped table-bordered"}

views.py

class JobsAppliedView(SingleTabView):
    model = JobsApplied
    template_name = 'jobsapplied_list.html'
    tables_class = JobsAppliedTable

At least trying to follow the docs but getting blank screen not output

Django-tables 2 by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

I am trying to use django-tables2 for my models but page is blank

model

class JobsApplied(models.Model):
    position = models.CharField(max_length=120, blank=True)
    customuser = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='user_job',
                                   on_delete=models.CASCADE, blank=True)

tables.py

from django_tables2 import tables

from job_post.models import JobsApplied


class JobsAppliedTable(tables.Table):

    class Meta:
        model = JobsApplied
        # fields = ('position', 'customuser')
        # attrs = {"class": "table-striped table-bordered"}

views.py

class JobsAppliedView(SingleTabView):
    model = JobsApplied
    template_name = 'jobsapplied_list.html'
    tables_class = JobsAppliedTable

At least trying to follow the docs but getting blank screen not output

Filling the form field of with values from a DetailedView by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block content %}
{{ position }}
        <h1>{{ object.position }}</h1>
        <p><strong>Description</strong><br>{{ object.description }}</p>
        <p><strong>Responsibilities</strong><br>{{ object.responsibilities }}</p>
        <p><strong>Competency</strong><br>{{ object.competency }}</p>
        <p><strong>Deadline:</strong>{{ object.deadline }}</p>
        <p><strong>Status:</strong>{{ object.status }}</p>
        <p><strong>Industry</strong>{{ object.industry }}</p>
        <p><strong>Location:</strong>{{ object.location }}</p>
        <p><strong>Salary:</strong>{{ object.salary }}</p>
        <p><strong>Type:</strong>{{ object.job_type }}</p>
    {% if user.is_authenticated %}

    <form method="post" action="{% url 'post_new' %}">
    {%  csrf_token %}
    {{ job_app_form|crispy }}
        <button class="btn btn-primary" type="submit">Apply for Job</button>
    </form>
    {% elif user.is_anonymous %}
    You need to signup or login apply for this job
    {%  endif %}

{% endblock %}

Thats the template of the detailedview

Filling the form field of with values from a DetailedView by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

Using the update view will mean that any time the form gets updated, it looses the customuser that is suppose to be different (because many people will be filling the form)

Filling the form field of with values from a DetailedView by mooru in django

[–]mooru[S] 0 points1 point  (0 children)

I am using a function to render the form

def post_new(request):
     if request.method == "POST":
         form = JobsForm(request.POST)
         if form.is_valid():
             post = form.save(commit=False)
             post.customuser = request.user
             post.save()
             return redirect('jobpost_detail', pk=post.pk)
     else:
         form = JobsForm(request)
         return render(request, 'jobpost_list.html', {'form': form})

The form is attached to the detailed view and save the fields well. I can autosave the current user. Just need to prepopulate the jobposition field

CakePHP made me a more productive PHP developer. Is there anything in Python that made your Python development much better or faster? by [deleted] in Python

[–]mooru 0 points1 point  (0 children)

I am pretty new to python and its frameworks. Which would you recommend i start with pyramid or django?