Git Product home page Git Product logo

Comments (5)

pevma avatar pevma commented on August 15, 2024

It is build that way - https://github.com/StamusNetworks/SELKS/blob/master/staging/config/hooks/chroot-inside-Debian-Live.chroot#L19
It was due to a conflict (if I remember correctly).
Would be thankful if you could please try and let us know if any potential issues arise actually.

from scirius.

b-u-g-s avatar b-u-g-s commented on August 15, 2024

Thanks Pevma, thats a very useful link! especialyl for someone like me who likes to look under the hood :)

So, I have upgraded to the latest version of Django using the following command:
pip install django==1.8.3 django-tables2 South GitPython pyinotify flup

Rebooted my VM (probably didnt have to)

Went to the SELKS dashboard and... yup there is a conflict indeed!
But that's super easy to fix, the error is
"Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated"
Googling the error pointed me to this article:

http://stackoverflow.com/questions/28306288/removedindjango18warning-creating-a-modelform-without-either-the-fields-attri

So basically it seems an argument (Field or Exclude) is needed since version 1.8

Looking at the trace error in the browser you can identify the file that triggered that error:
/opt/selks/scirius/rules/form.py

You can see there is a line with no "field" or "exclude"
class SystemSettingsForm(forms.ModelForm):
class Meta:
model = SystemSettings

So if you add the following line under "model = SystemSettings":
class SystemSettingsForm(forms.ModelForm):
class Meta:
model = SystemSettings
fields = 'all'

save the file, reload the dashboard...
Everything seems to work fine!
Not sure what else I need to do for being sure there is no other conflict but it seems OK to me now.
Will let you know in a few days, if anything else needs fixing (because it seems a bit too easy to be honest! :)

from scirius.

b-u-g-s avatar b-u-g-s commented on August 15, 2024

If you can tell me what you use Django for, I can try to stress test it by the way. I.e.: to do certain actions or load certain pages.

from scirius.

regit avatar regit commented on August 15, 2024

Hi,
OK good. This bug is already fixed in git. Really need to make a release once deactivate is fixed.
Le 22 juil. 2015 6:35 PM, Bugs [email protected] a écrit :Thanks Pevma, thats a very useful link! especialyl for someone like me who likes to look under the hood :)

So, I have upgraded to the latest version of Django using the following command:
pip install django==1.8.3 django-tables2 South GitPython pyinotify flup

Rebooted my VM (probably didnt have to)

Went to the SELKS dashboard and... yup there is a conflict indeed!
But that's super easy to fix, the error is
"Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated"
Googling the error pointed me to this article:

http://stackoverflow.com/questions/28306288/removedindjango18warning-creating-a-modelform-without-either-the-fields-attri

So basically it seems an argument (Field or Exclude) is needed since version 1.8

Looking at the trace error in the browser you can identify the file that triggered that error:
/opt/selks/scirius/rules/form.py

You can see there is a line with no "field" or "exclude"
class SystemSettingsForm(forms.ModelForm):
class Meta:
model = SystemSettings

So if you add the following line under "model = SystemSettings":
class SystemSettingsForm(forms.ModelForm):
class Meta:
model = SystemSettings
fields = 'all'

save the file, reload the dashboard...
Everything seems to work fine!
Not sure what else I need to do for being sure there is no other conflict but it seems OK to me now.
Will let you know in a few days, if anything else needs fixing (because it seems a bit too easy to be honest! :)

—Reply to this email directly or view it on GitHub.

from scirius.

regit avatar regit commented on August 15, 2024

Closing that issue as latest git has a fixed version.

from scirius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.