Tags » Brain Storm

Do I need Hibernate-JPA 2.0 dependency in pom.xml for JBOSS 5 container?

In one of the modules that we use, it has only Entities and this is used across different modules,
the dependency for hibernate in Entities module is declared in… 142 more words

Recent Questions - Stack Overflow


Surfing on the net i came accross this interesting article. So i thought to share it with you, maybe you’ll also find it interesting.

AFGHANISTAN 93… 79 more words

Brain Storm

constructing efficient error code mapper in Django filters or middlewares?

I am in the process of migrating my code from JAX-RS rest service to Django-Rest Framework. One nice feature that JAX-RS provides is Exception Mapper… 159 more words

Recent Questions - Stack Overflow

align field on django-crispy forms horizontally to centre of page?

I have a one field form which I want to align horizontally and centre of page.

I want to have autofocus and placeholder enabled.

Here is my code: 177 more words

Recent Questions - Stack Overflow

error field not showing in django crispy forms?

Here is my form class:

class VinForm(forms.Form):
    VIN = forms.CharField(min_length=13,max_length=13, label='VIN')

    def __init__(self, *args, **kwargs):
        super(VinForm, self).__init__(*args, **kwargs)

    self.helper = FormHelper()
    self.helper.form_method = 'post'
    self.helper.form_class = 'form-horizontal col-xs-12 col-md-6 col-lg-5'
    self.helper.label_class = 'col-xs-3 col-md-3 col-lg-3'
    self.helper.field_class = 'col-xs-12 col-md-12 col-lg-12'

    self. 71 more words
Recent Questions - Stack Overflow

Is a git commit required if I rollback using 1) git hard reset or 2) git revert?

I understand there are two ways of rolling back a git commit in remote repository.

Method 1:

git reset --hard <old-commit-id>
git commit -m "rolling back"
git push -f
… 77 more words
Recent Questions - Stack Overflow