Questions tagged [project-structure]

Refers to layout of folders and components to help organize a project's files, whether code or resources

482 questions
0
votes
1 answer

Python ModuleNotFoundError when importing custom modules

I have the following project structure Project Structure In utils.py I am importing a parse function form parser.py file like this from logica.parser.parser import parse In builder.py I am importing a function from utils.py that uses the parser…
0
votes
1 answer

Why my test files from a test folder can't import the source files from a source folder?

I have a problem where this is my project structure: . ├── Resources/ ├── src/ │ ├── __init__.py │ ├── main.py │ ├── utils/ │ │ ├── __init__.py │ │ ├── util.py │ │ └── otherUtil.py │ └── calculations/ │ ├── __init__.py │ …
kozter
  • 25
  • 5
0
votes
1 answer

Shopify Dawn theme source code explaination

I am currently trying to learn how to create my own custom theme from scratch and right now having trouble understanding the code of DAWN theme(wordpress free source theme). /Sections/page.liquid
{%- if…
0
votes
1 answer

Files not found after packing everything up to a Jar-File, though its working in Eclipse

So my program is finally done in it's first version. I can run it in Eclipse IDE without any problems, but as soon as I pack it up into a Jar-File, it can't find the files that were in a folder within the project (declared as source folder). I…
0
votes
1 answer

react native project structure with constants folder

what is considered the best practice for string constants constants used throughout the entire application such as constants used in home screen and others, would it be considered good practice to combine them all in one file or to have multiple…
NQQ
  • 51
  • 1
  • 5
0
votes
0 answers

How do you set up a directory structure for a bunch of small Rust programs?

I don't really know Rust yet, but I have a project that I want to contain a bunch of small Rust programs with a file of a few functions that can be used in all the programs. I can't seem to get it to be able to see the utils.rs file with this…
breakthatbass
  • 356
  • 1
  • 3
  • 11
0
votes
1 answer

Where should I add servlets in the Eclipse IDE's new folder structure

I'm new to dynamic web designing using java. In the reference video I'm following the professor is using an older version of eclipse IDE. My folder structure is a bit different from his. I'm using tomcat version 9 and I'm supposed to use MVC…
0
votes
1 answer

Standard tools to generate Spring Boot project structure in gradle

Is there ant standard tool that generates the recommended Spring Boot project directory structure along with interfaces and implementation (Impl.java) classes and having gradle as build tool ?
0
votes
0 answers

Tool to create boilerplate module on python (similar to `bundle gem ...` in Ruby)

Currently, I'm working to port some software from Ruby to Python. On Ruby to create a new gem you usually use bundle gem ... to generate a new gem project structure. Is there a similar tool in Python world?
CAMOBAP
  • 5,523
  • 8
  • 58
  • 93
0
votes
2 answers

Absolute/relative import in Python: ModuleNotFoundError and more

This is my project structure: - config - data - src - resources - db - test N.B.: I am using Python 3.9 and every folder that contains a .py file also has a __init__.py file All the scripts I want to run are located in the /src folder and…
0
votes
1 answer

Python / Flask App - Relative Imports Stopped Working

Everything was working fine, the imports have always worked and my project structure has not changed. I made some changes - adding fields & forms, and suddenly all the relative imports in my app/main/views.py stopped working. I reverted my changes -…
Aras
  • 1
  • 2
0
votes
0 answers

Retrofitting an upstream git repository for a fork

I've started a new job and found that there's a messy version control problem and I'd appreciate any thoughts you might have on how to bring it under control: Project U is a large nominally upstream project (millions of LOCs, tens of thousands of…
0
votes
1 answer

What is the best way to Sort clubs into leagues in java

Hello and thank you for your time in advanced. I am trying to create a few different football leagues (e.g. the Italian national league (Serie A ), the English national league (Premier league), ... , second division Italian league (Serie B),…
0
votes
0 answers

How to add library headers to common scope

I have following project structure: Project |-include | |-somedir | | |-someheader.h |-src | |-somedir | | |-somesource.c | | |-CMakeLists.txt | |-main.c | |-CMakeLists.txt |-lib | |-somelib | | |-include | | | |-somelibheader.h | | |-src | | |…
ReyMagos
  • 3
  • 2
0
votes
0 answers

Flask-migrate does not recognize all modules within a package?

I'm new with flask-migrate (and so with Python...) but I'll get to the point. I used to store all of my models inside a single models.py file but then I decided to separate every model to its corresponding file. After reading this question. I…
Ex7
  • 11
  • 1
  • 3