GithubHelp home page GithubHelp logo

editing about django-form-surveys HOT 6 CLOSED

irfanpule avatar irfanpule commented on September 17, 2024
editing

from django-form-surveys.

Comments (6)

irfanpule avatar irfanpule commented on September 17, 2024

Hi @GeekHamza1 ,

What changes would you like to make to migration? Basically, developing the djf_surveys is the same as the django app. If you want changes outside the djf_survey development path. Pleasefork first, then follow these steps:

  • clone project
  • symlink app to demo
  • ln -s [path_project_djf_survey] [path_demo_djf_survey]
  • create env development
  • active env
  • enter directory demo, cd demo
  • now, you can access all command manage.py and edit all code.

from django-form-surveys.

GeekHamza1 avatar GeekHamza1 commented on September 17, 2024

after following these steps i will be able to add new migrations in djf_survey ?

from django-form-surveys.

irfanpule avatar irfanpule commented on September 17, 2024

It's same with you dev project with django.

  • edit model
  • run python manage.py makemigrations

from django-form-surveys.

GeekHamza1 avatar GeekHamza1 commented on September 17, 2024

I tried but it does not detect migrations ..

Also for html text i should update html text located in site-package/djs_survey/templates ..
Can i move the djs_survey from site-packages to my project app ?

from django-form-surveys.

irfanpule avatar irfanpule commented on September 17, 2024

Hi @GeekHamza1

It's not recommended to edit from the site-package. If you want modify it project stand alone, I think you just copy folder djf_surveys then including on your project. Or you can inherited class to modify template or adding context.

example:

from djf_surveys.views import SurveyListView


class YourClassModifyListView(SurveyListView):
    template = 'your_template_dir/template.html'
    
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        context['other_key'] = 'other_value'
        return context

from django-form-surveys.

GeekHamza1 avatar GeekHamza1 commented on September 17, 2024

i copyed the djf_surveys to my project folder and added it to setting , but migrations not detected

from django-form-surveys.

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.